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

Side by Side Diff: src/frames.h

Issue 1303403004: [Interpreter] Add support for parameter variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_add_bytecodes
Patch Set: Address review comments Created 5 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
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.h » ('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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 static const int kAllocationSiteOffset = 167 static const int kAllocationSiteOffset =
168 StandardFrameConstants::kExpressionsOffset - 1 * kPointerSize; 168 StandardFrameConstants::kExpressionsOffset - 1 * kPointerSize;
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 + 5 * kPointerSize; 173 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize;
174 }; 174 };
175 175
176 176
177 class InterpreterFrameConstants : public AllStatic {
178 public:
179 // Register file pointer relative.
180 static const int kLastParamFromRegisterPointer =
181 StandardFrameConstants::kFixedFrameSize + kPointerSize;
182 };
183
184
177 // Abstract base class for all stack frames. 185 // Abstract base class for all stack frames.
178 class StackFrame BASE_EMBEDDED { 186 class StackFrame BASE_EMBEDDED {
179 public: 187 public:
180 #define DECLARE_TYPE(type, ignore) type, 188 #define DECLARE_TYPE(type, ignore) type,
181 enum Type { 189 enum Type {
182 NONE = 0, 190 NONE = 0,
183 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) 191 STACK_FRAME_TYPE_LIST(DECLARE_TYPE)
184 NUMBER_OF_TYPES, 192 NUMBER_OF_TYPES,
185 // Used by FrameScope to indicate that the stack frame is constructed 193 // Used by FrameScope to indicate that the stack frame is constructed
186 // manually and the FrameScope does not need to emit code. 194 // manually and the FrameScope does not need to emit code.
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 }; 946 };
939 947
940 948
941 // Reads all frames on the current stack and copies them into the current 949 // Reads all frames on the current stack and copies them into the current
942 // zone memory. 950 // zone memory.
943 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 951 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
944 952
945 } } // namespace v8::internal 953 } } // namespace v8::internal
946 954
947 #endif // V8_FRAMES_H_ 955 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698