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

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: 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
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Flow Control. 225 // Flow Control.
226 BytecodeArrayBuilder& Bind(BytecodeLabel* label); 226 BytecodeArrayBuilder& Bind(BytecodeLabel* label);
227 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label); 227 BytecodeArrayBuilder& Bind(const BytecodeLabel& target, BytecodeLabel* label);
228 228
229 BytecodeArrayBuilder& Jump(BytecodeLabel* label); 229 BytecodeArrayBuilder& Jump(BytecodeLabel* label);
230 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label); 230 BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label);
231 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label); 231 BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label);
232 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label); 232 BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label);
233 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label); 233 BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label);
234 234
235 BytecodeArrayBuilder& StackCheck();
236
235 BytecodeArrayBuilder& Throw(); 237 BytecodeArrayBuilder& Throw();
236 BytecodeArrayBuilder& ReThrow(); 238 BytecodeArrayBuilder& ReThrow();
237 BytecodeArrayBuilder& Return(); 239 BytecodeArrayBuilder& Return();
238 240
239 // Complex flow control. 241 // Complex flow control.
240 BytecodeArrayBuilder& ForInPrepare(Register cache_info_triple); 242 BytecodeArrayBuilder& ForInPrepare(Register cache_info_triple);
241 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length); 243 BytecodeArrayBuilder& ForInDone(Register index, Register cache_length);
242 BytecodeArrayBuilder& ForInNext(Register receiver, Register index, 244 BytecodeArrayBuilder& ForInNext(Register receiver, Register index,
243 Register cache_type_array_pair); 245 Register cache_type_array_pair);
244 BytecodeArrayBuilder& ForInStep(Register index); 246 BytecodeArrayBuilder& ForInStep(Register index);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 size_t offset_; 404 size_t offset_;
403 405
404 friend class BytecodeArrayBuilder; 406 friend class BytecodeArrayBuilder;
405 }; 407 };
406 408
407 } // namespace interpreter 409 } // namespace interpreter
408 } // namespace internal 410 } // namespace internal
409 } // namespace v8 411 } // namespace v8
410 412
411 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 413 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698