OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 __ Push(x0); // Save result on stack | 1699 __ Push(x0); // Save result on stack |
1700 result_saved = true; | 1700 result_saved = true; |
1701 } | 1701 } |
1702 switch (property->kind()) { | 1702 switch (property->kind()) { |
1703 case ObjectLiteral::Property::CONSTANT: | 1703 case ObjectLiteral::Property::CONSTANT: |
1704 UNREACHABLE(); | 1704 UNREACHABLE(); |
1705 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1705 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
1706 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1706 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
1707 // Fall through. | 1707 // Fall through. |
1708 case ObjectLiteral::Property::COMPUTED: | 1708 case ObjectLiteral::Property::COMPUTED: |
| 1709 // It is safe to use [[Put]] here because the boilerplate already |
| 1710 // contains computed properties with an uninitialized value. |
1709 if (key->value()->IsInternalizedString()) { | 1711 if (key->value()->IsInternalizedString()) { |
1710 if (property->emit_store()) { | 1712 if (property->emit_store()) { |
1711 VisitForAccumulatorValue(value); | 1713 VisitForAccumulatorValue(value); |
1712 DCHECK(StoreDescriptor::ValueRegister().is(x0)); | 1714 DCHECK(StoreDescriptor::ValueRegister().is(x0)); |
1713 __ Mov(StoreDescriptor::NameRegister(), Operand(key->value())); | 1715 __ Mov(StoreDescriptor::NameRegister(), Operand(key->value())); |
1714 __ Peek(StoreDescriptor::ReceiverRegister(), 0); | 1716 __ Peek(StoreDescriptor::ReceiverRegister(), 0); |
1715 CallStoreIC(key->LiteralFeedbackId()); | 1717 CallStoreIC(key->LiteralFeedbackId()); |
1716 PrepareForBailoutForId(key->id(), NO_REGISTERS); | 1718 PrepareForBailoutForId(key->id(), NO_REGISTERS); |
1717 } else { | 1719 } else { |
1718 VisitForEffect(value); | 1720 VisitForEffect(value); |
(...skipping 3526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5245 return previous_; | 5247 return previous_; |
5246 } | 5248 } |
5247 | 5249 |
5248 | 5250 |
5249 #undef __ | 5251 #undef __ |
5250 | 5252 |
5251 | 5253 |
5252 } } // namespace v8::internal | 5254 } } // namespace v8::internal |
5253 | 5255 |
5254 #endif // V8_TARGET_ARCH_ARM64 | 5256 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |