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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Named load property of the @@asyncIterator symbol. | 130 // Named load property of the @@asyncIterator symbol. |
131 BytecodeArrayBuilder& LoadAsyncIteratorProperty(Register object, | 131 BytecodeArrayBuilder& LoadAsyncIteratorProperty(Register object, |
132 int feedback_slot); | 132 int feedback_slot); |
133 | 133 |
134 // Store properties. Flag for NeedsSetFunctionName() should | 134 // Store properties. Flag for NeedsSetFunctionName() should |
135 // be in the accumulator. | 135 // be in the accumulator. |
136 BytecodeArrayBuilder& StoreDataPropertyInLiteral( | 136 BytecodeArrayBuilder& StoreDataPropertyInLiteral( |
137 Register object, Register name, DataPropertyInLiteralFlags flags, | 137 Register object, Register name, DataPropertyInLiteralFlags flags, |
138 int feedback_slot); | 138 int feedback_slot); |
139 | 139 |
| 140 // Collect type information for developer tools. |
| 141 BytecodeArrayBuilder& CollectTypeProfile(Register name, Register value, |
| 142 int feedback_slot); |
| 143 |
140 // Store a property named by a property name. The value to be stored should be | 144 // Store a property named by a property name. The value to be stored should be |
141 // in the accumulator. | 145 // in the accumulator. |
142 BytecodeArrayBuilder& StoreNamedProperty(Register object, | 146 BytecodeArrayBuilder& StoreNamedProperty(Register object, |
143 const AstRawString* name, | 147 const AstRawString* name, |
144 int feedback_slot, | 148 int feedback_slot, |
145 LanguageMode language_mode); | 149 LanguageMode language_mode); |
146 // Store a property named by a constant from the constant pool. The value to | 150 // Store a property named by a constant from the constant pool. The value to |
147 // be stored should be in the accumulator. | 151 // be stored should be in the accumulator. |
148 BytecodeArrayBuilder& StoreNamedProperty(Register object, | 152 BytecodeArrayBuilder& StoreNamedProperty(Register object, |
149 size_t constant_pool_entry, | 153 size_t constant_pool_entry, |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 static int const kNoFeedbackSlot = 0; | 481 static int const kNoFeedbackSlot = 0; |
478 | 482 |
479 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 483 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
480 }; | 484 }; |
481 | 485 |
482 } // namespace interpreter | 486 } // namespace interpreter |
483 } // namespace internal | 487 } // namespace internal |
484 } // namespace v8 | 488 } // namespace v8 |
485 | 489 |
486 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 490 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |