| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 return *this; | 628 return *this; |
| 629 } | 629 } |
| 630 | 630 |
| 631 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( | 631 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( |
| 632 Register object, Register name, DataPropertyInLiteralFlags flags, | 632 Register object, Register name, DataPropertyInLiteralFlags flags, |
| 633 int feedback_slot) { | 633 int feedback_slot) { |
| 634 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); | 634 OutputStaDataPropertyInLiteral(object, name, flags, feedback_slot); |
| 635 return *this; | 635 return *this; |
| 636 } | 636 } |
| 637 | 637 |
| 638 BytecodeArrayBuilder& BytecodeArrayBuilder::CollectTypeProfile( |
| 639 Register name, int feedback_slot) { |
| 640 DCHECK(FLAG_type_profile); |
| 641 OutputCollectTypeProfile(name, feedback_slot); |
| 642 return *this; |
| 643 } |
| 644 |
| 638 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( | 645 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( |
| 639 Register object, size_t name_index, int feedback_slot, | 646 Register object, size_t name_index, int feedback_slot, |
| 640 LanguageMode language_mode) { | 647 LanguageMode language_mode) { |
| 641 // Ensure that language mode is in sync with the IC slot kind if the function | 648 // Ensure that language mode is in sync with the IC slot kind if the function |
| 642 // literal is available (not a unit test case). | 649 // literal is available (not a unit test case). |
| 643 // TODO(ishell): check only in debug mode. | 650 // TODO(ishell): check only in debug mode. |
| 644 if (literal_) { | 651 if (literal_) { |
| 645 FeedbackSlot slot = FeedbackVector::ToSlot(feedback_slot); | 652 FeedbackSlot slot = FeedbackVector::ToSlot(feedback_slot); |
| 646 CHECK_EQ(GetLanguageModeFromSlotKind(feedback_vector_spec()->GetKind(slot)), | 653 CHECK_EQ(GetLanguageModeFromSlotKind(feedback_vector_spec()->GetKind(slot)), |
| 647 language_mode); | 654 language_mode); |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 RegisterList reg_list) { | 1200 RegisterList reg_list) { |
| 1194 DCHECK(RegisterListIsValid(reg_list)); | 1201 DCHECK(RegisterListIsValid(reg_list)); |
| 1195 if (register_optimizer_) | 1202 if (register_optimizer_) |
| 1196 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1203 register_optimizer_->PrepareOutputRegisterList(reg_list); |
| 1197 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1204 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
| 1198 } | 1205 } |
| 1199 | 1206 |
| 1200 } // namespace interpreter | 1207 } // namespace interpreter |
| 1201 } // namespace internal | 1208 } // namespace internal |
| 1202 } // namespace v8 | 1209 } // namespace v8 |
| OLD | NEW |