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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 return *this; | 547 return *this; |
548 } | 548 } |
549 | 549 |
550 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty( | 550 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty( |
551 Register object, int feedback_slot) { | 551 Register object, int feedback_slot) { |
552 OutputLdaKeyedProperty(object, feedback_slot); | 552 OutputLdaKeyedProperty(object, feedback_slot); |
553 return *this; | 553 return *this; |
554 } | 554 } |
555 | 555 |
556 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( | 556 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( |
557 Register object, Register name, Register value, Register attrs) { | 557 Register object, Register name, Register value, |
558 OutputStaDataPropertyInLiteral(object, name, value, attrs); | 558 DataPropertyInLiteralFlags flags) { |
| 559 OutputStaDataPropertyInLiteral(object, name, value, flags); |
559 return *this; | 560 return *this; |
560 } | 561 } |
561 | 562 |
562 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( | 563 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( |
563 Register object, const Handle<Name> name, int feedback_slot, | 564 Register object, const Handle<Name> name, int feedback_slot, |
564 LanguageMode language_mode) { | 565 LanguageMode language_mode) { |
565 size_t name_index = GetConstantPoolEntry(name); | 566 size_t name_index = GetConstantPoolEntry(name); |
566 if (language_mode == SLOPPY) { | 567 if (language_mode == SLOPPY) { |
567 OutputStaNamedPropertySloppy(object, name_index, feedback_slot); | 568 OutputStaNamedPropertySloppy(object, name_index, feedback_slot); |
568 } else { | 569 } else { |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 RegisterList reg_list) { | 1041 RegisterList reg_list) { |
1041 DCHECK(RegisterListIsValid(reg_list)); | 1042 DCHECK(RegisterListIsValid(reg_list)); |
1042 if (register_optimizer_) | 1043 if (register_optimizer_) |
1043 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1044 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1044 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1045 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1045 } | 1046 } |
1046 | 1047 |
1047 } // namespace interpreter | 1048 } // namespace interpreter |
1048 } // namespace internal | 1049 } // namespace internal |
1049 } // namespace v8 | 1050 } // namespace v8 |
OLD | NEW |