| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/ast.h" | 10 #include "src/ast.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 int feedback_slot, | 116 int feedback_slot, |
| 117 LanguageMode language_mode); | 117 LanguageMode language_mode); |
| 118 | 118 |
| 119 // Create a new closure for the SharedFunctionInfo in the accumulator. | 119 // Create a new closure for the SharedFunctionInfo in the accumulator. |
| 120 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); | 120 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); |
| 121 | 121 |
| 122 // Create a new arguments object in the accumulator. | 122 // Create a new arguments object in the accumulator. |
| 123 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); | 123 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); |
| 124 | 124 |
| 125 // Literals creation. Constant elements should be in the accumulator. | 125 // Literals creation. Constant elements should be in the accumulator. |
| 126 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags); | 126 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, int flags); |
| 127 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); | 127 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); |
| 128 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); | 128 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); |
| 129 | 129 |
| 130 // Push the context in accumulator as the new context, and store in register | 130 // Push the context in accumulator as the new context, and store in register |
| 131 // |context|. | 131 // |context|. |
| 132 BytecodeArrayBuilder& PushContext(Register context); | 132 BytecodeArrayBuilder& PushContext(Register context); |
| 133 | 133 |
| 134 // Pop the current context and replace with |context|. | 134 // Pop the current context and replace with |context|. |
| 135 BytecodeArrayBuilder& PopContext(Register context); | 135 BytecodeArrayBuilder& PopContext(Register context); |
| 136 | 136 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 356 |
| 357 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 357 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 | 360 |
| 361 } // namespace interpreter | 361 } // namespace interpreter |
| 362 } // namespace internal | 362 } // namespace internal |
| 363 } // namespace v8 | 363 } // namespace v8 |
| 364 | 364 |
| 365 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 365 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |