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 || V8_TARGET_ARCH_PPC64 6 7 #include "src/execution/ppc/frame-constants-ppc.h" 8 9 #include "src/codegen/assembler-inl.h" 10 #include "src/codegen/macro-assembler.h" 11 #include "src/execution/frame-constants.h" 12 13 namespace v8 { 14 namespace internal { 15 fp_register()16Register JavaScriptFrame::fp_register() { return v8::internal::fp; } context_register()17Register JavaScriptFrame::context_register() { return cp; } constant_pool_pointer_register()18Register JavaScriptFrame::constant_pool_pointer_register() { 19 DCHECK(FLAG_enable_embedded_constant_pool); 20 return kConstantPoolRegister; 21 } 22 RegisterStackSlotCount(int register_count)23int UnoptimizedFrameConstants::RegisterStackSlotCount(int register_count) { 24 return register_count; 25 } 26 PaddingSlotCount(int register_count)27int BuiltinContinuationFrameConstants::PaddingSlotCount(int register_count) { 28 USE(register_count); 29 return 0; 30 } 31 32 } // namespace internal 33 } // namespace v8 34 35 #endif // V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64 36