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

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: ia32 lithium fix. Created 5 years, 10 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
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 27 matching lines...) Expand all
153 162
154 163
155 inline void StackHandler::SetFp(Address slot, Address fp) { 164 inline void StackHandler::SetFp(Address slot, Address fp) {
156 Memory::Address_at(slot) = fp; 165 Memory::Address_at(slot) = fp;
157 } 166 }
158 167
159 168
160 } } // namespace v8::internal 169 } } // namespace v8::internal
161 170
162 #endif // V8_ARM_FRAMES_ARM_H_ 171 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698