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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |