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