| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 if (language_mode == SLOPPY) { | 579 if (language_mode == SLOPPY) { |
| 580 OutputStaKeyedPropertySloppy(object, key, feedback_slot); | 580 OutputStaKeyedPropertySloppy(object, key, feedback_slot); |
| 581 } else { | 581 } else { |
| 582 DCHECK_EQ(language_mode, STRICT); | 582 DCHECK_EQ(language_mode, STRICT); |
| 583 OutputStaKeyedPropertyStrict(object, key, feedback_slot); | 583 OutputStaKeyedPropertyStrict(object, key, feedback_slot); |
| 584 } | 584 } |
| 585 return *this; | 585 return *this; |
| 586 } | 586 } |
| 587 | 587 |
| 588 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry, | 588 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry, |
| 589 int flags) { | 589 int slot, int flags) { |
| 590 OutputCreateClosure(entry, flags); | 590 OutputCreateClosure(entry, slot, flags); |
| 591 return *this; | 591 return *this; |
| 592 } | 592 } |
| 593 | 593 |
| 594 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateBlockContext( | 594 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateBlockContext( |
| 595 Handle<ScopeInfo> scope_info) { | 595 Handle<ScopeInfo> scope_info) { |
| 596 size_t entry = GetConstantPoolEntry(scope_info); | 596 size_t entry = GetConstantPoolEntry(scope_info); |
| 597 OutputCreateBlockContext(entry); | 597 OutputCreateBlockContext(entry); |
| 598 return *this; | 598 return *this; |
| 599 } | 599 } |
| 600 | 600 |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 RegisterList reg_list) { | 1046 RegisterList reg_list) { |
| 1047 DCHECK(RegisterListIsValid(reg_list)); | 1047 DCHECK(RegisterListIsValid(reg_list)); |
| 1048 if (register_optimizer_) | 1048 if (register_optimizer_) |
| 1049 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1049 register_optimizer_->PrepareOutputRegisterList(reg_list); |
| 1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 } // namespace interpreter | 1053 } // namespace interpreter |
| 1054 } // namespace internal | 1054 } // namespace internal |
| 1055 } // namespace v8 | 1055 } // namespace v8 |
| OLD | NEW |