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/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 BytecodeArrayBuilder& ForInPrepare(Register receiver, | 394 BytecodeArrayBuilder& ForInPrepare(Register receiver, |
395 RegisterList cache_info_triple); | 395 RegisterList cache_info_triple); |
396 BytecodeArrayBuilder& ForInContinue(Register index, Register cache_length); | 396 BytecodeArrayBuilder& ForInContinue(Register index, Register cache_length); |
397 BytecodeArrayBuilder& ForInNext(Register receiver, Register index, | 397 BytecodeArrayBuilder& ForInNext(Register receiver, Register index, |
398 RegisterList cache_type_array_pair, | 398 RegisterList cache_type_array_pair, |
399 int feedback_slot); | 399 int feedback_slot); |
400 BytecodeArrayBuilder& ForInStep(Register index); | 400 BytecodeArrayBuilder& ForInStep(Register index); |
401 | 401 |
402 // Generators. | 402 // Generators. |
403 BytecodeArrayBuilder& SuspendGenerator(Register generator, | 403 BytecodeArrayBuilder& SuspendGenerator(Register generator, |
| 404 RegisterList registers, |
404 SuspendFlags flags); | 405 SuspendFlags flags); |
405 BytecodeArrayBuilder& ResumeGenerator(Register generator); | 406 BytecodeArrayBuilder& RestoreGeneratorState(Register generator); |
| 407 BytecodeArrayBuilder& RestoreGeneratorRegisters(Register generator, |
| 408 RegisterList registers); |
406 | 409 |
407 // Exception handling. | 410 // Exception handling. |
408 BytecodeArrayBuilder& MarkHandler(int handler_id, | 411 BytecodeArrayBuilder& MarkHandler(int handler_id, |
409 HandlerTable::CatchPrediction will_catch); | 412 HandlerTable::CatchPrediction will_catch); |
410 BytecodeArrayBuilder& MarkTryBegin(int handler_id, Register context); | 413 BytecodeArrayBuilder& MarkTryBegin(int handler_id, Register context); |
411 BytecodeArrayBuilder& MarkTryEnd(int handler_id); | 414 BytecodeArrayBuilder& MarkTryEnd(int handler_id); |
412 | 415 |
413 // Creates a new handler table entry and returns a {hander_id} identifying the | 416 // Creates a new handler table entry and returns a {hander_id} identifying the |
414 // entry, so that it can be referenced by above exception handling support. | 417 // entry, so that it can be referenced by above exception handling support. |
415 int NewHandlerEntry() { return handler_table_builder()->NewHandlerEntry(); } | 418 int NewHandlerEntry() { return handler_table_builder()->NewHandlerEntry(); } |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 }; | 565 }; |
563 | 566 |
564 V8_EXPORT_PRIVATE std::ostream& operator<<( | 567 V8_EXPORT_PRIVATE std::ostream& operator<<( |
565 std::ostream& os, const BytecodeArrayBuilder::ToBooleanMode& mode); | 568 std::ostream& os, const BytecodeArrayBuilder::ToBooleanMode& mode); |
566 | 569 |
567 } // namespace interpreter | 570 } // namespace interpreter |
568 } // namespace internal | 571 } // namespace internal |
569 } // namespace v8 | 572 } // namespace v8 |
570 | 573 |
571 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 574 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |