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/frames.h" 9 #include "src/macro-assembler.h" 10 11 #include "src/ppc/assembler-ppc.h" 12 #include "src/ppc/assembler-ppc-inl.h" 13 #include "src/ppc/frames-ppc.h" 14 #include "src/ppc/macro-assembler-ppc.h" 15 16 namespace v8 { 17 namespace internal { 18 19 fp_register()20Register JavaScriptFrame::fp_register() { return v8::internal::fp; } context_register()21Register JavaScriptFrame::context_register() { return cp; } constant_pool_pointer_register()22Register JavaScriptFrame::constant_pool_pointer_register() { 23 DCHECK(FLAG_enable_embedded_constant_pool); 24 return kConstantPoolRegister; 25 } 26 27 fp_register()28Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; } context_register()29Register StubFailureTrampolineFrame::context_register() { return cp; } constant_pool_pointer_register()30Register StubFailureTrampolineFrame::constant_pool_pointer_register() { 31 DCHECK(FLAG_enable_embedded_constant_pool); 32 return kConstantPoolRegister; 33 } 34 } // namespace internal 35 } // namespace v8 36 37 #endif // V8_TARGET_ARCH_PPC 38