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

Side by Side Diff: src/frames.h

Issue 1528913003: [Interpreter] Add basic deoptimization support from TurboFan to Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_deopt_1
Patch Set: Add MIPS port and fix comment Created 5 years 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/deoptimizer.cc ('k') | src/frames.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_FRAMES_H_ 5 #ifndef V8_FRAMES_H_
6 #define V8_FRAMES_H_ 6 #define V8_FRAMES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 static const int kCodeOffset = 169 static const int kCodeOffset =
170 StandardFrameConstants::kExpressionsOffset - 0 * kPointerSize; 170 StandardFrameConstants::kExpressionsOffset - 0 * kPointerSize;
171 171
172 static const int kFrameSize = 172 static const int kFrameSize =
173 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize; 173 StandardFrameConstants::kFixedFrameSize + 4 * kPointerSize;
174 }; 174 };
175 175
176 176
177 class InterpreterFrameConstants : public AllStatic { 177 class InterpreterFrameConstants : public AllStatic {
178 public: 178 public:
179 // Fixed frame includes new.target and bytecode offset.
180 static const int kFixedFrameSize =
181 StandardFrameConstants::kFixedFrameSize + 2 * kPointerSize;
182 static const int kFixedFrameSizeFromFp =
183 StandardFrameConstants::kFixedFrameSizeFromFp + 2 * kPointerSize;
184
179 // FP-relative. 185 // FP-relative.
180 static const int kRegisterFilePointerFromFp = 186 static const int kRegisterFilePointerFromFp =
181 -StandardFrameConstants::kFixedFrameSizeFromFp - 3 * kPointerSize; 187 -StandardFrameConstants::kFixedFrameSizeFromFp - 3 * kPointerSize;
182 188
183 // Register file pointer relative. 189 // Register file pointer relative.
184 static const int kLastParamFromRegisterPointer = 190 static const int kLastParamFromRegisterPointer =
185 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize; 191 StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
186 192
187 static const int kBytecodeOffsetFromRegisterPointer = 1 * kPointerSize; 193 static const int kBytecodeOffsetFromRegisterPointer = 1 * kPointerSize;
188 static const int kNewTargetFromRegisterPointer = 2 * kPointerSize; 194 static const int kNewTargetFromRegisterPointer = 2 * kPointerSize;
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 965
960 966
961 // Reads all frames on the current stack and copies them into the current 967 // Reads all frames on the current stack and copies them into the current
962 // zone memory. 968 // zone memory.
963 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 969 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
964 970
965 } // namespace internal 971 } // namespace internal
966 } // namespace v8 972 } // namespace v8
967 973
968 #endif // V8_FRAMES_H_ 974 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698