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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 1665853002: [Interpreter] Add explicit StackCheck bytecodes on function entry and back branches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittests. 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/ia32/builtins-ia32.cc ('k') | src/interpreter/bytecode-array-builder.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_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-register-allocator.h" 9 #include "src/interpreter/bytecode-register-allocator.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Flow Control. 229 // Flow Control.
230 BytecodeArrayBuilder& Bind(BytecodeLabel* label); 230 BytecodeArrayBuilder& Bind(BytecodeLabel* label);
231 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label); 231 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label);
232 232
233 BytecodeArrayBuilder& Jump(BytecodeLabel* label); 233 BytecodeArrayBuilder& Jump(BytecodeLabel* label);
234 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); 234 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label);
235 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); 235 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label);
236 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); 236 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label);
237 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); 237 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label);
238 238
239 BytecodeArrayBuilder& StackCheck();
240
239 BytecodeArrayBuilder& Throw(); 241 BytecodeArrayBuilder& Throw();
240 BytecodeArrayBuilder& ReThrow(); 242 BytecodeArrayBuilder& ReThrow();
241 BytecodeArrayBuilder& Return(); 243 BytecodeArrayBuilder& Return();
242 244
243 // Complex flow control. 245 // Complex flow control.
244 BytecodeArrayBuilder& ForInPrepare(Register cache_info_triple); 246 BytecodeArrayBuilder& ForInPrepare(Register cache_info_triple);
245 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length); 247 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length);
246 BytecodeArrayBuilder& ForInNext(Register receiver, Register index, 248 BytecodeArrayBuilder& ForInNext(Register receiver, Register index,
247 Register cache_type_array_pair); 249 Register cache_type_array_pair);
248 BytecodeArrayBuilder& ForInStep(Register index); 250 BytecodeArrayBuilder& ForInStep(Register index);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 size_t offset_; 415 size_t offset_;
414 416
415 friend class BytecodeArrayBuilder; 417 friend class BytecodeArrayBuilder;
416 }; 418 };
417 419
418 } // namespace interpreter 420 } // namespace interpreter
419 } // namespace internal 421 } // namespace internal
420 } // namespace v8 422 } // namespace v8
421 423
422 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 424 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698