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/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Register-register transfer. | 114 // Register-register transfer. |
115 BytecodeArrayBuilder& MoveRegister(Register from, Register to); | 115 BytecodeArrayBuilder& MoveRegister(Register from, Register to); |
116 | 116 |
117 // Named load property. | 117 // Named load property. |
118 BytecodeArrayBuilder& LoadNamedProperty(Register object, | 118 BytecodeArrayBuilder& LoadNamedProperty(Register object, |
119 const Handle<Name> name, | 119 const Handle<Name> name, |
120 int feedback_slot); | 120 int feedback_slot); |
121 // Keyed load property. The key should be in the accumulator. | 121 // Keyed load property. The key should be in the accumulator. |
122 BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot); | 122 BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot); |
123 | 123 |
| 124 // Store properties. Flag for NeedsSetFunctionName() should |
| 125 // be in the accumulator. |
| 126 BytecodeArrayBuilder& StoreDataPropertyInLiteral(Register object, |
| 127 Register name, |
| 128 Register value, |
| 129 Register attrs); |
| 130 |
124 // Store properties. The value to be stored should be in the accumulator. | 131 // Store properties. The value to be stored should be in the accumulator. |
125 BytecodeArrayBuilder& StoreNamedProperty(Register object, | 132 BytecodeArrayBuilder& StoreNamedProperty(Register object, |
126 const Handle<Name> name, | 133 const Handle<Name> name, |
127 int feedback_slot, | 134 int feedback_slot, |
128 LanguageMode language_mode); | 135 LanguageMode language_mode); |
129 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, | 136 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, |
130 int feedback_slot, | 137 int feedback_slot, |
131 LanguageMode language_mode); | 138 LanguageMode language_mode); |
132 | 139 |
133 // Lookup the variable with |name|. | 140 // Lookup the variable with |name|. |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 static int const kNoFeedbackSlot = 0; | 422 static int const kNoFeedbackSlot = 0; |
416 | 423 |
417 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 424 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
418 }; | 425 }; |
419 | 426 |
420 } // namespace interpreter | 427 } // namespace interpreter |
421 } // namespace internal | 428 } // namespace internal |
422 } // namespace v8 | 429 } // namespace v8 |
423 | 430 |
424 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 431 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |