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

Side by Side Diff: src/frames.h

Issue 1378523005: [Interpreter] Add support for global declarations and load/store of global variables (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_toplevel
Patch Set: Fix test Created 5 years, 2 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/compiler/interpreter-assembler.cc ('k') | src/interpreter/bytecode-array-builder.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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize; 174 StandardFrameConstants::kFixedFrameSize + 5 * kPointerSize;
175 }; 175 };
176 176
177 177
178 class InterpreterFrameConstants : public AllStatic { 178 class InterpreterFrameConstants : public AllStatic {
179 public: 179 public:
180 // Register file pointer relative. 180 // Register file pointer relative.
181 static const int kLastParamFromRegisterPointer = 181 static const int kLastParamFromRegisterPointer =
182 StandardFrameConstants::kFixedFrameSize + kPointerSize; 182 StandardFrameConstants::kFixedFrameSize + kPointerSize;
183 static const int kFunctionFromRegisterPointer = kPointerSize; 183 static const int kFunctionFromRegisterPointer = kPointerSize;
184 static const int kContextFromRegisterPointer = 2 * kPointerSize;
184 }; 185 };
185 186
186 187
187 // Abstract base class for all stack frames. 188 // Abstract base class for all stack frames.
188 class StackFrame BASE_EMBEDDED { 189 class StackFrame BASE_EMBEDDED {
189 public: 190 public:
190 #define DECLARE_TYPE(type, ignore) type, 191 #define DECLARE_TYPE(type, ignore) type,
191 enum Type { 192 enum Type {
192 NONE = 0, 193 NONE = 0,
193 STACK_FRAME_TYPE_LIST(DECLARE_TYPE) 194 STACK_FRAME_TYPE_LIST(DECLARE_TYPE)
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 947
947 948
948 // 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
949 // zone memory. 950 // zone memory.
950 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 951 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
951 952
952 } // namespace internal 953 } // namespace internal
953 } // namespace v8 954 } // namespace v8
954 955
955 #endif // V8_FRAMES_H_ 956 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698