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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot, | 71 BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot, |
72 LanguageMode language_mode); | 72 LanguageMode language_mode); |
73 | 73 |
74 // Store properties. The value to be stored should be in the accumulator. | 74 // Store properties. The value to be stored should be in the accumulator. |
75 BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, | 75 BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, |
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 BytecodeArrayBuilder& GenericStoreKeyedProperty(Register object, | |
82 Register key); | |
83 | 81 |
84 // Create a new closure for the SharedFunctionInfo in the accumulator. | 82 // Create a new closure for the SharedFunctionInfo in the accumulator. |
85 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); | 83 BytecodeArrayBuilder& CreateClosure(PretenureFlag tenured); |
86 | 84 |
87 // Literals creation. Constant elements should be in the accumulator. | 85 // Literals creation. Constant elements should be in the accumulator. |
88 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); | 86 BytecodeArrayBuilder& CreateArrayLiteral(int literal_index, int flags); |
89 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); | 87 BytecodeArrayBuilder& CreateObjectLiteral(int literal_index, int flags); |
90 | 88 |
91 // Push the context in accumulator as the new context, and store in register | 89 // Push the context in accumulator as the new context, and store in register |
92 // |context|. | 90 // |context|. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 259 |
262 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); | 260 DISALLOW_COPY_AND_ASSIGN(TemporaryRegisterScope); |
263 }; | 261 }; |
264 | 262 |
265 | 263 |
266 } // namespace interpreter | 264 } // namespace interpreter |
267 } // namespace internal | 265 } // namespace internal |
268 } // namespace v8 | 266 } // namespace v8 |
269 | 267 |
270 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 268 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |