| 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1719 __ push(r0); // Save result on stack | 1719 __ push(r0); // Save result on stack |
| 1720 result_saved = true; | 1720 result_saved = true; |
| 1721 } | 1721 } |
| 1722 switch (property->kind()) { | 1722 switch (property->kind()) { |
| 1723 case ObjectLiteral::Property::CONSTANT: | 1723 case ObjectLiteral::Property::CONSTANT: |
| 1724 UNREACHABLE(); | 1724 UNREACHABLE(); |
| 1725 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1725 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1726 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1726 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
| 1727 // Fall through. | 1727 // Fall through. |
| 1728 case ObjectLiteral::Property::COMPUTED: | 1728 case ObjectLiteral::Property::COMPUTED: |
| 1729 // It is safe to use [[Put]] here because the boilerplate already |
| 1730 // contains computed properties with an uninitialized value. |
| 1729 if (key->value()->IsInternalizedString()) { | 1731 if (key->value()->IsInternalizedString()) { |
| 1730 if (property->emit_store()) { | 1732 if (property->emit_store()) { |
| 1731 VisitForAccumulatorValue(value); | 1733 VisitForAccumulatorValue(value); |
| 1732 DCHECK(StoreDescriptor::ValueRegister().is(r0)); | 1734 DCHECK(StoreDescriptor::ValueRegister().is(r0)); |
| 1733 __ mov(StoreDescriptor::NameRegister(), Operand(key->value())); | 1735 __ mov(StoreDescriptor::NameRegister(), Operand(key->value())); |
| 1734 __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); | 1736 __ ldr(StoreDescriptor::ReceiverRegister(), MemOperand(sp)); |
| 1735 CallStoreIC(key->LiteralFeedbackId()); | 1737 CallStoreIC(key->LiteralFeedbackId()); |
| 1736 PrepareForBailoutForId(key->id(), NO_REGISTERS); | 1738 PrepareForBailoutForId(key->id(), NO_REGISTERS); |
| 1737 } else { | 1739 } else { |
| 1738 VisitForEffect(value); | 1740 VisitForEffect(value); |
| (...skipping 3524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5263 | 5265 |
| 5264 DCHECK(interrupt_address == | 5266 DCHECK(interrupt_address == |
| 5265 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5267 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5266 return OSR_AFTER_STACK_CHECK; | 5268 return OSR_AFTER_STACK_CHECK; |
| 5267 } | 5269 } |
| 5268 | 5270 |
| 5269 | 5271 |
| 5270 } } // namespace v8::internal | 5272 } } // namespace v8::internal |
| 5271 | 5273 |
| 5272 #endif // V8_TARGET_ARCH_ARM | 5274 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |