| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 __ push(v0); // Save result on stack. | 1704 __ push(v0); // Save result on stack. |
| 1705 result_saved = true; | 1705 result_saved = true; |
| 1706 } | 1706 } |
| 1707 switch (property->kind()) { | 1707 switch (property->kind()) { |
| 1708 case ObjectLiteral::Property::CONSTANT: | 1708 case ObjectLiteral::Property::CONSTANT: |
| 1709 UNREACHABLE(); | 1709 UNREACHABLE(); |
| 1710 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1710 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1711 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1711 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
| 1712 // Fall through. | 1712 // Fall through. |
| 1713 case ObjectLiteral::Property::COMPUTED: | 1713 case ObjectLiteral::Property::COMPUTED: |
| 1714 // It is safe to use [[Put]] here because the boilerplate already |
| 1715 // contains computed properties with an uninitialized value. |
| 1714 if (key->value()->IsInternalizedString()) { | 1716 if (key->value()->IsInternalizedString()) { |
| 1715 if (property->emit_store()) { | 1717 if (property->emit_store()) { |
| 1716 VisitForAccumulatorValue(value); | 1718 VisitForAccumulatorValue(value); |
| 1717 __ mov(StoreDescriptor::ValueRegister(), result_register()); | 1719 __ mov(StoreDescriptor::ValueRegister(), result_register()); |
| 1718 DCHECK(StoreDescriptor::ValueRegister().is(a0)); | 1720 DCHECK(StoreDescriptor::ValueRegister().is(a0)); |
| 1719 __ li(StoreDescriptor::NameRegister(), Operand(key->value())); | 1721 __ li(StoreDescriptor::NameRegister(), Operand(key->value())); |
| 1720 __ lw(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); | 1722 __ lw(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
| 1721 CallStoreIC(key->LiteralFeedbackId()); | 1723 CallStoreIC(key->LiteralFeedbackId()); |
| 1722 PrepareForBailoutForId(key->id(), NO_REGISTERS); | 1724 PrepareForBailoutForId(key->id(), NO_REGISTERS); |
| 1723 } else { | 1725 } else { |
| (...skipping 3477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5201 Assembler::target_address_at(pc_immediate_load_address)) == | 5203 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5202 reinterpret_cast<uint32_t>( | 5204 reinterpret_cast<uint32_t>( |
| 5203 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5205 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5204 return OSR_AFTER_STACK_CHECK; | 5206 return OSR_AFTER_STACK_CHECK; |
| 5205 } | 5207 } |
| 5206 | 5208 |
| 5207 | 5209 |
| 5208 } } // namespace v8::internal | 5210 } } // namespace v8::internal |
| 5209 | 5211 |
| 5210 #endif // V8_TARGET_ARCH_MIPS | 5212 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |