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

Side by Side Diff: src/compiler/interpreter-assembler.h

Issue 1634153002: [Interpreter] Adds support for const/let variables to interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased the patch. Created 4 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
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/interpreter-assembler.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_COMPILER_INTERPRETER_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2); 141 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2);
142 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2, 142 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2,
143 Node* arg3); 143 Node* arg3);
144 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2, 144 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2,
145 Node* arg3, Node* arg4); 145 Node* arg3, Node* arg4);
146 146
147 // Jump relative to the current bytecode by |jump_offset|. 147 // Jump relative to the current bytecode by |jump_offset|.
148 void Jump(Node* jump_offset); 148 void Jump(Node* jump_offset);
149 149
150 // Jump relative to the current bytecode by |jump_offset| if the 150 // Jump relative to the current bytecode by |jump_offset| if the
151 // |condition| is true. Helper function for JumpIfWordEqual and
152 // JumpIfWordNotEqual.
153 void JumpConditional(Node* condition, Node* jump_offset);
154
155 // Jump relative to the current bytecode by |jump_offset| if the
151 // word values |lhs| and |rhs| are equal. 156 // word values |lhs| and |rhs| are equal.
152 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset); 157 void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset);
153 158
159 // Jump relative to the current bytecode by |jump_offset| if the
160 // word values |lhs| and |rhs| are not equal.
161 void JumpIfWordNotEqual(Node* lhs, Node* rhs, Node* jump_offset);
162
154 // Perform a stack guard check. 163 // Perform a stack guard check.
155 void StackCheck(); 164 void StackCheck();
156 165
157 // Returns from the function. 166 // Returns from the function.
158 void Return(); 167 void Return();
159 168
160 // Dispatch to the bytecode. 169 // Dispatch to the bytecode.
161 void Dispatch(); 170 void Dispatch();
162 171
163 // Abort with the given bailout reason. 172 // Abort with the given bailout reason.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool code_generated_; 232 bool code_generated_;
224 233
225 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 234 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
226 }; 235 };
227 236
228 } // namespace compiler 237 } // namespace compiler
229 } // namespace internal 238 } // namespace internal
230 } // namespace v8 239 } // namespace v8
231 240
232 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 241 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698