Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/ppc/frames-ppc.cc

Issue 571173003: PowerPC specific sub-directories (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ppc/frames-ppc.h ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
11 #include "src/macro-assembler.h" 11 #include "src/macro-assembler.h"
12 12
13 #include "src/arm/assembler-arm-inl.h" 13 #include "src/ppc/assembler-ppc.h"
14 #include "src/arm/assembler-arm.h" 14 #include "src/ppc/assembler-ppc-inl.h"
15 #include "src/arm/macro-assembler-arm.h" 15 #include "src/ppc/macro-assembler-ppc.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 20
21 Register JavaScriptFrame::fp_register() { return v8::internal::fp; } 21 Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
22 Register JavaScriptFrame::context_register() { return cp; } 22 Register JavaScriptFrame::context_register() { return cp; }
23 Register JavaScriptFrame::constant_pool_pointer_register() { 23 Register JavaScriptFrame::constant_pool_pointer_register() {
24 #if V8_OOL_CONSTANT_POOL
24 DCHECK(FLAG_enable_ool_constant_pool); 25 DCHECK(FLAG_enable_ool_constant_pool);
25 return pp; 26 return kConstantPoolRegister;
27 #else
28 UNREACHABLE();
29 return no_reg;
30 #endif
26 } 31 }
27 32
28 33
29 Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; } 34 Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
30 Register StubFailureTrampolineFrame::context_register() { return cp; } 35 Register StubFailureTrampolineFrame::context_register() { return cp; }
31 Register StubFailureTrampolineFrame::constant_pool_pointer_register() { 36 Register StubFailureTrampolineFrame::constant_pool_pointer_register() {
37 #if V8_OOL_CONSTANT_POOL
32 DCHECK(FLAG_enable_ool_constant_pool); 38 DCHECK(FLAG_enable_ool_constant_pool);
33 return pp; 39 return kConstantPoolRegister;
40 #else
41 UNREACHABLE();
42 return no_reg;
43 #endif
34 } 44 }
35 45
36 46
37 Object*& ExitFrame::constant_pool_slot() const { 47 Object*& ExitFrame::constant_pool_slot() const {
48 #if V8_OOL_CONSTANT_POOL
38 DCHECK(FLAG_enable_ool_constant_pool); 49 DCHECK(FLAG_enable_ool_constant_pool);
39 const int offset = ExitFrameConstants::kConstantPoolOffset; 50 const int offset = ExitFrameConstants::kConstantPoolOffset;
40 return Memory::Object_at(fp() + offset); 51 return Memory::Object_at(fp() + offset);
52 #else
53 UNREACHABLE();
54 return Memory::Object_at(NULL);
55 #endif
41 } 56 }
57 }
58 } // namespace v8::internal
42 59
43 60 #endif // V8_TARGET_ARCH_PPC
44 } } // namespace v8::internal
45
46 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ppc/frames-ppc.h ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698