| 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-array-writer.h" | 9 #include "src/interpreter/bytecode-array-writer.h" |
| 10 #include "src/interpreter/bytecode-register-allocator.h" | 10 #include "src/interpreter/bytecode-register-allocator.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Lookup the variable with |name|. | 122 // Lookup the variable with |name|. |
| 123 BytecodeArrayBuilder& LoadLookupSlot(const Handle<String> name, | 123 BytecodeArrayBuilder& LoadLookupSlot(const Handle<String> name, |
| 124 TypeofMode typeof_mode); | 124 TypeofMode typeof_mode); |
| 125 | 125 |
| 126 // Store value in the accumulator into the variable with |name|. | 126 // Store value in the accumulator into the variable with |name|. |
| 127 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, | 127 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, |
| 128 LanguageMode language_mode); | 128 LanguageMode language_mode); |
| 129 | 129 |
| 130 // Create a new closure for the SharedFunctionInfo. | 130 // Create a new closure for the SharedFunctionInfo. |
| 131 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, | 131 BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, |
| 132 PretenureFlag tenured); | 132 int flags); |
| 133 | 133 |
| 134 // Create a new arguments object in the accumulator. | 134 // Create a new arguments object in the accumulator. |
| 135 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); | 135 BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); |
| 136 | 136 |
| 137 // Literals creation. Constant elements should be in the accumulator. | 137 // Literals creation. Constant elements should be in the accumulator. |
| 138 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, | 138 BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, |
| 139 int literal_index, int flags); | 139 int literal_index, int flags); |
| 140 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, | 140 BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, |
| 141 int literal_index, int flags); | 141 int literal_index, int flags); |
| 142 BytecodeArrayBuilder& CreateObjectLiteral( | 142 BytecodeArrayBuilder& CreateObjectLiteral( |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 BytecodeSourceInfo latest_source_info_; | 367 BytecodeSourceInfo latest_source_info_; |
| 368 | 368 |
| 369 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 369 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
| 370 }; | 370 }; |
| 371 | 371 |
| 372 } // namespace interpreter | 372 } // namespace interpreter |
| 373 } // namespace internal | 373 } // namespace internal |
| 374 } // namespace v8 | 374 } // namespace v8 |
| 375 | 375 |
| 376 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 376 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |