| 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 #include "src/interpreter/bytecode-array-builder.h" | 5 #include "src/interpreter/bytecode-array-builder.h" |
| 6 | 6 |
| 7 #include "src/globals.h" | 7 #include "src/globals.h" |
| 8 #include "src/interpreter/bytecode-array-writer.h" | 8 #include "src/interpreter/bytecode-array-writer.h" |
| 9 #include "src/interpreter/bytecode-dead-code-optimizer.h" | 9 #include "src/interpreter/bytecode-dead-code-optimizer.h" |
| 10 #include "src/interpreter/bytecode-label.h" | 10 #include "src/interpreter/bytecode-label.h" |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 } | 633 } |
| 634 | 634 |
| 635 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( | 635 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( |
| 636 Register object, Register name, DataPropertyInLiteralFlags flags, | 636 Register object, Register name, DataPropertyInLiteralFlags flags, |
| 637 int feedback_slot) { | 637 int feedback_slot) { |
| 638 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); | 638 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); |
| 639 return *this; | 639 return *this; |
| 640 } | 640 } |
| 641 | 641 |
| 642 BytecodeArrayBuilder& BytecodeArrayBuilder::CollectTypeProfile( | 642 BytecodeArrayBuilder& BytecodeArrayBuilder::CollectTypeProfile( |
| 643 Register name, int feedback_slot) { | 643 int position, int feedback_slot) { |
| 644 DCHECK(FLAG_type_profile); | 644 DCHECK(FLAG_type_profile); |
| 645 OutputCollectTypeProfile(name, feedback_slot); | 645 OutputCollectTypeProfile(position, feedback_slot); |
| 646 return *this; | 646 return *this; |
| 647 } | 647 } |
| 648 | 648 |
| 649 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( | 649 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( |
| 650 Register object, size_t name_index, int feedback_slot, | 650 Register object, size_t name_index, int feedback_slot, |
| 651 LanguageMode language_mode) { | 651 LanguageMode language_mode) { |
| 652 // Ensure that language mode is in sync with the IC slot kind if the function | 652 // Ensure that language mode is in sync with the IC slot kind if the function |
| 653 // literal is available (not a unit test case). | 653 // literal is available (not a unit test case). |
| 654 // TODO(ishell): check only in debug mode. | 654 // TODO(ishell): check only in debug mode. |
| 655 if (literal_) { | 655 if (literal_) { |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 RegisterList reg_list) { | 1221 RegisterList reg_list) { |
| 1222 DCHECK(RegisterListIsValid(reg_list)); | 1222 DCHECK(RegisterListIsValid(reg_list)); |
| 1223 if (register_optimizer_) | 1223 if (register_optimizer_) |
| 1224 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1224 register_optimizer_->PrepareOutputRegisterList(reg_list); |
| 1225 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1225 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 } // namespace interpreter | 1228 } // namespace interpreter |
| 1229 } // namespace internal | 1229 } // namespace internal |
| 1230 } // namespace v8 | 1230 } // namespace v8 |
| OLD | NEW |