1 // Copyright 2014 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #if V8_TARGET_ARCH_PPC 6 7 #include "src/assembler.h" 8 #include "src/frame-constants.h" 9 #include "src/macro-assembler.h" 10 #include "src/ppc/assembler-ppc-inl.h" 11 #include "src/ppc/assembler-ppc.h" 12 #include "src/ppc/macro-assembler-ppc.h" 13 14 #include "src/ppc/frame-constants-ppc.h" 15 16 namespace v8 { 17 namespace internal { 18 fp_register()19Register JavaScriptFrame::fp_register() { return v8::internal::fp; } context_register()20Register JavaScriptFrame::context_register() { return cp; } constant_pool_pointer_register()21Register JavaScriptFrame::constant_pool_pointer_register() { 22 DCHECK(FLAG_enable_embedded_constant_pool); 23 return kConstantPoolRegister; 24 } 25 RegisterStackSlotCount(int register_count)26int InterpreterFrameConstants::RegisterStackSlotCount(int register_count) { 27 return register_count; 28 } 29 PaddingSlotCount(int register_count)30int BuiltinContinuationFrameConstants::PaddingSlotCount(int register_count) { 31 USE(register_count); 32 return 0; 33 } 34 35 } // namespace internal 36 } // namespace v8 37 38 #endif // V8_TARGET_ARCH_PPC 39