| 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/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" | 
| 10 #include "src/interpreter/constant-array-builder.h" | 10 #include "src/interpreter/constant-array-builder.h" | 
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 138   BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, | 138   BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, | 
| 139                                         LanguageMode language_mode); | 139                                         LanguageMode language_mode); | 
| 140 | 140 | 
| 141   // Create a new closure for the SharedFunctionInfo. | 141   // Create a new closure for the SharedFunctionInfo. | 
| 142   BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, | 142   BytecodeArrayBuilder& CreateClosure(Handle<SharedFunctionInfo> shared_info, | 
| 143                                       PretenureFlag tenured); | 143                                       PretenureFlag tenured); | 
| 144 | 144 | 
| 145   // Create a new arguments object in the accumulator. | 145   // Create a new arguments object in the accumulator. | 
| 146   BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); | 146   BytecodeArrayBuilder& CreateArguments(CreateArgumentsType type); | 
| 147 | 147 | 
|  | 148   // Create a new rest arguments object starting at |index| in the accumulator. | 
|  | 149   BytecodeArrayBuilder& CreateRestArguments(int index); | 
|  | 150 | 
| 148   // Literals creation.  Constant elements should be in the accumulator. | 151   // Literals creation.  Constant elements should be in the accumulator. | 
| 149   BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, | 152   BytecodeArrayBuilder& CreateRegExpLiteral(Handle<String> pattern, | 
| 150                                             int literal_index, int flags); | 153                                             int literal_index, int flags); | 
| 151   BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, | 154   BytecodeArrayBuilder& CreateArrayLiteral(Handle<FixedArray> constant_elements, | 
| 152                                            int literal_index, int flags); | 155                                            int literal_index, int flags); | 
| 153   BytecodeArrayBuilder& CreateObjectLiteral( | 156   BytecodeArrayBuilder& CreateObjectLiteral( | 
| 154       Handle<FixedArray> constant_properties, int literal_index, int flags); | 157       Handle<FixedArray> constant_properties, int literal_index, int flags); | 
| 155 | 158 | 
| 156   // Push the context in accumulator as the new context, and store in register | 159   // Push the context in accumulator as the new context, and store in register | 
| 157   // |context|. | 160   // |context|. | 
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 406   size_t offset_; | 409   size_t offset_; | 
| 407 | 410 | 
| 408   friend class BytecodeArrayBuilder; | 411   friend class BytecodeArrayBuilder; | 
| 409 }; | 412 }; | 
| 410 | 413 | 
| 411 }  // namespace interpreter | 414 }  // namespace interpreter | 
| 412 }  // namespace internal | 415 }  // namespace internal | 
| 413 }  // namespace v8 | 416 }  // namespace v8 | 
| 414 | 417 | 
| 415 #endif  // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 418 #endif  // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 
| OLD | NEW | 
|---|