| 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 switch (property->kind()) { | 1489 switch (property->kind()) { |
| 1490 case ObjectLiteral::Property::CONSTANT: | 1490 case ObjectLiteral::Property::CONSTANT: |
| 1491 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1491 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
| 1492 case ObjectLiteral::Property::COMPUTED: | 1492 case ObjectLiteral::Property::COMPUTED: |
| 1493 if (property->emit_store()) { | 1493 if (property->emit_store()) { |
| 1494 PushOperand(Smi::FromInt(NONE)); | 1494 PushOperand(Smi::FromInt(NONE)); |
| 1495 PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); | 1495 PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); |
| 1496 CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); | 1496 CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); |
| 1497 PrepareForBailoutForId(expr->GetIdForPropertySet(property_index), |
| 1498 BailoutState::NO_REGISTERS); |
| 1497 } else { | 1499 } else { |
| 1498 DropOperands(3); | 1500 DropOperands(3); |
| 1499 } | 1501 } |
| 1500 break; | 1502 break; |
| 1501 | 1503 |
| 1502 case ObjectLiteral::Property::PROTOTYPE: | 1504 case ObjectLiteral::Property::PROTOTYPE: |
| 1503 UNREACHABLE(); | 1505 UNREACHABLE(); |
| 1504 break; | 1506 break; |
| 1505 | 1507 |
| 1506 case ObjectLiteral::Property::GETTER: | 1508 case ObjectLiteral::Property::GETTER: |
| (...skipping 2174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3681 DCHECK_EQ( | 3683 DCHECK_EQ( |
| 3682 isolate->builtins()->OnStackReplacement()->entry(), | 3684 isolate->builtins()->OnStackReplacement()->entry(), |
| 3683 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3685 Assembler::target_address_at(call_target_address, unoptimized_code)); |
| 3684 return ON_STACK_REPLACEMENT; | 3686 return ON_STACK_REPLACEMENT; |
| 3685 } | 3687 } |
| 3686 | 3688 |
| 3687 } // namespace internal | 3689 } // namespace internal |
| 3688 } // namespace v8 | 3690 } // namespace v8 |
| 3689 | 3691 |
| 3690 #endif // V8_TARGET_ARCH_X64 | 3692 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |