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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 int feedback_slot, | 76 int feedback_slot, |
77 LanguageMode language_mode); | 77 LanguageMode language_mode); |
78 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, | 78 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, |
79 int feedback_slot, | 79 int feedback_slot, |
80 LanguageMode language_mode); | 80 LanguageMode language_mode); |
81 | 81 |
82 // Create a new closure for the SharedFunctionInfo in the accumulator. | 82 // Create a new closure for the SharedFunctionInfo in the accumulator. |
83 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); | 83 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); |
84 | 84 |
85 // Literals creation. Constant elements should be in the accumulator. | 85 // Literals creation. Constant elements should be in the accumulator. |
| 86 BytecodeArrayBuilder& CreateRegExpLiteral(int literal_index, Register flags); |
86 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); | 87 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); |
87 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); | 88 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); |
88 | 89 |
89 // Push the context in accumulator as the new context, and store in register | 90 // Push the context in accumulator as the new context, and store in register |
90 // |context|. | 91 // |context|. |
91 BytecodeArrayBuilder& PushContext(Register context); | 92 BytecodeArrayBuilder& PushContext(Register context); |
92 | 93 |
93 // Pop the current context and replace with |context|. | 94 // Pop the current context and replace with |context|. |
94 BytecodeArrayBuilder& PopContext(Register context); | 95 BytecodeArrayBuilder& PopContext(Register context); |
95 | 96 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 265 |
265 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 266 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
266 }; | 267 }; |
267 | 268 |
268 | 269 |
269 } // namespace interpreter | 270 } // namespace interpreter |
270 } // namespace internal | 271 } // namespace internal |
271 } // namespace v8 | 272 } // namespace v8 |
272 | 273 |
273 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 274 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |