| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 __ push(v0); // Save result on stack. | 1701 __ push(v0); // Save result on stack. |
| 1702 result_saved = true; | 1702 result_saved = true; |
| 1703 } | 1703 } |
| 1704 switch (property->kind()) { | 1704 switch (property->kind()) { |
| 1705 case ObjectLiteral::Property::CONSTANT: | 1705 case ObjectLiteral::Property::CONSTANT: |
| 1706 UNREACHABLE(); | 1706 UNREACHABLE(); |
| 1707 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1707 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1708 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1708 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
| 1709 // Fall through. | 1709 // Fall through. |
| 1710 case ObjectLiteral::Property::COMPUTED: | 1710 case ObjectLiteral::Property::COMPUTED: |
| 1711 // It is safe to use [[Put]] here because the boilerplate already |
| 1712 // contains computed properties with an uninitialized value. |
| 1711 if (key->value()->IsInternalizedString()) { | 1713 if (key->value()->IsInternalizedString()) { |
| 1712 if (property->emit_store()) { | 1714 if (property->emit_store()) { |
| 1713 VisitForAccumulatorValue(value); | 1715 VisitForAccumulatorValue(value); |
| 1714 __ mov(StoreDescriptor::ValueRegister(), result_register()); | 1716 __ mov(StoreDescriptor::ValueRegister(), result_register()); |
| 1715 DCHECK(StoreDescriptor::ValueRegister().is(a0)); | 1717 DCHECK(StoreDescriptor::ValueRegister().is(a0)); |
| 1716 __ li(StoreDescriptor::NameRegister(), Operand(key->value())); | 1718 __ li(StoreDescriptor::NameRegister(), Operand(key->value())); |
| 1717 __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); | 1719 __ ld(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
| 1718 CallStoreIC(key->LiteralFeedbackId()); | 1720 CallStoreIC(key->LiteralFeedbackId()); |
| 1719 PrepareForBailoutForId(key->id(), NO_REGISTERS); | 1721 PrepareForBailoutForId(key->id(), NO_REGISTERS); |
| 1720 } else { | 1722 } else { |
| (...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5205 Assembler::target_address_at(pc_immediate_load_address)) == | 5207 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5206 reinterpret_cast<uint64_t>( | 5208 reinterpret_cast<uint64_t>( |
| 5207 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5209 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5208 return OSR_AFTER_STACK_CHECK; | 5210 return OSR_AFTER_STACK_CHECK; |
| 5209 } | 5211 } |
| 5210 | 5212 |
| 5211 | 5213 |
| 5212 } } // namespace v8::internal | 5214 } } // namespace v8::internal |
| 5213 | 5215 |
| 5214 #endif // V8_TARGET_ARCH_MIPS64 | 5216 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |