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

Side by Side Diff: src/arm/frames-arm.h

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug-mode Arm issue. Created 5 years, 6 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
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/frames-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_ARM_FRAMES_ARM_H_ 5 #ifndef V8_ARM_FRAMES_ARM_H_
6 #define V8_ARM_FRAMES_ARM_H_ 6 #define V8_ARM_FRAMES_ARM_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 class EntryFrameConstants : public AllStatic { 78 class EntryFrameConstants : public AllStatic {
79 public: 79 public:
80 static const int kCallerFPOffset = 80 static const int kCallerFPOffset =
81 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize); 81 -(StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize);
82 }; 82 };
83 83
84 84
85 class ExitFrameConstants : public AllStatic { 85 class ExitFrameConstants : public AllStatic {
86 public: 86 public:
87 static const int kFrameSize = FLAG_enable_ool_constant_pool ? 87 static const int kFrameSize =
88 3 * kPointerSize : 2 * kPointerSize; 88 FLAG_enable_embedded_constant_pool ? 3 * kPointerSize : 2 * kPointerSize;
89 89
90 static const int kConstantPoolOffset = FLAG_enable_ool_constant_pool ? 90 static const int kConstantPoolOffset =
91 -3 * kPointerSize : 0; 91 FLAG_enable_embedded_constant_pool ? -3 * kPointerSize : 0;
92 static const int kCodeOffset = -2 * kPointerSize; 92 static const int kCodeOffset = -2 * kPointerSize;
93 static const int kSPOffset = -1 * kPointerSize; 93 static const int kSPOffset = -1 * kPointerSize;
94 94
95 // The caller fields are below the frame pointer on the stack. 95 // The caller fields are below the frame pointer on the stack.
96 static const int kCallerFPOffset = 0 * kPointerSize; 96 static const int kCallerFPOffset = 0 * kPointerSize;
97 // The calling JS function is below FP. 97 // The calling JS function is below FP.
98 static const int kCallerPCOffset = 1 * kPointerSize; 98 static const int kCallerPCOffset = 1 * kPointerSize;
99 99
100 // FP-relative displacement of the caller's SP. It points just 100 // FP-relative displacement of the caller's SP. It points just
101 // below the saved PC. 101 // below the saved PC.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 inline Object* JavaScriptFrame::function_slot_object() const { 149 inline Object* JavaScriptFrame::function_slot_object() const {
150 const int offset = JavaScriptFrameConstants::kFunctionOffset; 150 const int offset = JavaScriptFrameConstants::kFunctionOffset;
151 return Memory::Object_at(fp() + offset); 151 return Memory::Object_at(fp() + offset);
152 } 152 }
153 153
154 154
155 } } // namespace v8::internal 155 } } // namespace v8::internal
156 156
157 #endif // V8_ARM_FRAMES_ARM_H_ 157 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/frames-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698