OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |