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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1405 } | 1405 } |
1406 switch (property->kind()) { | 1406 switch (property->kind()) { |
1407 case ObjectLiteral::Property::CONSTANT: | 1407 case ObjectLiteral::Property::CONSTANT: |
1408 UNREACHABLE(); | 1408 UNREACHABLE(); |
1409 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1409 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
1410 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); | 1410 DCHECK(!CompileTimeValue::IsCompileTimeValue(property->value())); |
1411 // Fall through. | 1411 // Fall through. |
1412 case ObjectLiteral::Property::COMPUTED: | 1412 case ObjectLiteral::Property::COMPUTED: |
1413 // It is safe to use [[Put]] here because the boilerplate already | 1413 // It is safe to use [[Put]] here because the boilerplate already |
1414 // contains computed properties with an uninitialized value. | 1414 // contains computed properties with an uninitialized value. |
1415 if (key->value()->IsInternalizedString()) { | 1415 if (key->IsPropertyName()) { |
1416 if (property->emit_store()) { | 1416 if (property->emit_store()) { |
1417 VisitForAccumulatorValue(value); | 1417 VisitForAccumulatorValue(value); |
1418 DCHECK(StoreDescriptor::ValueRegister().is(x0)); | 1418 DCHECK(StoreDescriptor::ValueRegister().is(x0)); |
1419 __ Mov(StoreDescriptor::NameRegister(), Operand(key->value())); | 1419 __ Mov(StoreDescriptor::NameRegister(), Operand(key->value())); |
1420 __ Peek(StoreDescriptor::ReceiverRegister(), 0); | 1420 __ Peek(StoreDescriptor::ReceiverRegister(), 0); |
1421 EmitLoadStoreICSlot(property->GetSlot(0)); | 1421 EmitLoadStoreICSlot(property->GetSlot(0)); |
1422 CallStoreIC(); | 1422 CallStoreIC(); |
1423 PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS); | 1423 PrepareForBailoutForId(key->id(), BailoutState::NO_REGISTERS); |
1424 | 1424 |
1425 if (NeedsHomeObject(value)) { | 1425 if (NeedsHomeObject(value)) { |
(...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3846 } | 3846 } |
3847 | 3847 |
3848 return INTERRUPT; | 3848 return INTERRUPT; |
3849 } | 3849 } |
3850 | 3850 |
3851 | 3851 |
3852 } // namespace internal | 3852 } // namespace internal |
3853 } // namespace v8 | 3853 } // namespace v8 |
3854 | 3854 |
3855 #endif // V8_TARGET_ARCH_ARM64 | 3855 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |