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

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

Issue 942513002: Put the type feedback vector in the unoptimized JavaScript frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reduced constant in deep recursion test for windows. Created 5 years, 8 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/code-stubs-arm.cc ('k') | src/arm/full-codegen-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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.
102 static const int kCallerSPDisplacement = 2 * kPointerSize; 102 static const int kCallerSPDisplacement = 2 * kPointerSize;
103 }; 103 };
104 104
105 105
106 class JavaScriptFrameConstants : public AllStatic { 106 class JavaScriptFrameConstants : public AllStatic {
107 public: 107 public:
108 // FP-relative. 108 // FP-relative.
109 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
110 static const int kLastParameterOffset = +2 * kPointerSize; 109 static const int kLastParameterOffset = +2 * kPointerSize;
111 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 110 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
111 static const int kFeedbackVectorOffset =
112 StandardFrameConstants::kExpressionsOffset;
113 static const int kLocal0Offset = -1 * kPointerSize + kFeedbackVectorOffset;
114 static const int kLocal0OffsetOptimized = kFeedbackVectorOffset;
115
116 static const int kUnoptimizedFixedFrameSizeFromFp =
117 StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize;
112 118
113 // Caller SP-relative. 119 // Caller SP-relative.
114 static const int kParam0Offset = -2 * kPointerSize; 120 static const int kParam0Offset = -2 * kPointerSize;
115 static const int kReceiverOffset = -1 * kPointerSize; 121 static const int kReceiverOffset = -1 * kPointerSize;
122
123 static const int kUnoptimizedFixedFrameSize =
124 StandardFrameConstants::kFixedFrameSize + kPointerSize;
116 }; 125 };
117 126
118 127
119 class ArgumentsAdaptorFrameConstants : public AllStatic { 128 class ArgumentsAdaptorFrameConstants : public AllStatic {
120 public: 129 public:
121 // FP-relative. 130 // FP-relative.
122 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 131 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
123 132
124 static const int kFrameSize = 133 static const int kFrameSize =
125 StandardFrameConstants::kFixedFrameSize + kPointerSize; 134 StandardFrameConstants::kFixedFrameSize + kPointerSize;
(...skipping 22 matching lines...) Expand all
148 157
149 inline Object* JavaScriptFrame::function_slot_object() const { 158 inline Object* JavaScriptFrame::function_slot_object() const {
150 const int offset = JavaScriptFrameConstants::kFunctionOffset; 159 const int offset = JavaScriptFrameConstants::kFunctionOffset;
151 return Memory::Object_at(fp() + offset); 160 return Memory::Object_at(fp() + offset);
152 } 161 }
153 162
154 163
155 } } // namespace v8::internal 164 } } // namespace v8::internal
156 165
157 #endif // V8_ARM_FRAMES_ARM_H_ 166 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698