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

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

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 3 months 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 //
3 // Copyright IBM Corp. 2012, 2013. All rights reserved.
4 //
2 // Use of this source code is governed by a BSD-style license that can be 5 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 6 // found in the LICENSE file.
4 7
5 #include "src/v8.h" 8 #include "src/v8.h"
6 9
7 #if V8_TARGET_ARCH_ARM 10 #if V8_TARGET_ARCH_PPC
8 11
9 #include "src/assembler.h" 12 #include "src/assembler.h"
10 #include "src/frames.h" 13 #include "src/frames.h"
11 #include "src/macro-assembler.h" 14 #include "src/macro-assembler.h"
12 15
13 #include "src/arm/assembler-arm-inl.h" 16 #include "src/ppc/assembler-ppc.h"
14 #include "src/arm/assembler-arm.h" 17 #include "src/ppc/assembler-ppc-inl.h"
15 #include "src/arm/macro-assembler-arm.h" 18 #include "src/ppc/macro-assembler-ppc.h"
16 19
17 namespace v8 { 20 namespace v8 {
18 namespace internal { 21 namespace internal {
19 22
20 23
21 Register JavaScriptFrame::fp_register() { return v8::internal::fp; } 24 Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
22 Register JavaScriptFrame::context_register() { return cp; } 25 Register JavaScriptFrame::context_register() { return cp; }
23 Register JavaScriptFrame::constant_pool_pointer_register() { 26 Register JavaScriptFrame::constant_pool_pointer_register() {
27 #if V8_OOL_CONSTANT_POOL
24 DCHECK(FLAG_enable_ool_constant_pool); 28 DCHECK(FLAG_enable_ool_constant_pool);
25 return pp; 29 return kConstantPoolRegister;
30 #else
31 UNREACHABLE();
32 return no_reg;
33 #endif
26 } 34 }
27 35
28 36
29 Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; } 37 Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
30 Register StubFailureTrampolineFrame::context_register() { return cp; } 38 Register StubFailureTrampolineFrame::context_register() { return cp; }
31 Register StubFailureTrampolineFrame::constant_pool_pointer_register() { 39 Register StubFailureTrampolineFrame::constant_pool_pointer_register() {
40 #if V8_OOL_CONSTANT_POOL
32 DCHECK(FLAG_enable_ool_constant_pool); 41 DCHECK(FLAG_enable_ool_constant_pool);
33 return pp; 42 return kConstantPoolRegister;
43 #else
44 UNREACHABLE();
45 return no_reg;
46 #endif
34 } 47 }
35 48
36 49
37 Object*& ExitFrame::constant_pool_slot() const { 50 Object*& ExitFrame::constant_pool_slot() const {
51 #if V8_OOL_CONSTANT_POOL
38 DCHECK(FLAG_enable_ool_constant_pool); 52 DCHECK(FLAG_enable_ool_constant_pool);
39 const int offset = ExitFrameConstants::kConstantPoolOffset; 53 const int offset = ExitFrameConstants::kConstantPoolOffset;
40 return Memory::Object_at(fp() + offset); 54 return Memory::Object_at(fp() + offset);
55 #else
56 UNREACHABLE();
57 return Memory::Object_at(NULL);
58 #endif
41 } 59 }
60 }
61 } // namespace v8::internal
42 62
43 63 #endif // V8_TARGET_ARCH_PPC
44 } } // namespace v8::internal
45
46 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« src/hydrogen-bch.cc ('K') | « 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