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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1459 } | 1459 } |
1460 | 1460 |
1461 switch (property->kind()) { | 1461 switch (property->kind()) { |
1462 case ObjectLiteral::Property::CONSTANT: | 1462 case ObjectLiteral::Property::CONSTANT: |
1463 case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 1463 case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
1464 case ObjectLiteral::Property::COMPUTED: | 1464 case ObjectLiteral::Property::COMPUTED: |
1465 if (property->emit_store()) { | 1465 if (property->emit_store()) { |
1466 PushOperand(Smi::FromInt(NONE)); | 1466 PushOperand(Smi::FromInt(NONE)); |
1467 PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); | 1467 PushOperand(Smi::FromInt(property->NeedsSetFunctionName())); |
1468 CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); | 1468 CallRuntimeWithOperands(Runtime::kDefineDataPropertyInLiteral); |
| 1469 PrepareForBailoutForId(expr->GetIdForPropertySet(property_index), |
| 1470 BailoutState::NO_REGISTERS); |
1469 } else { | 1471 } else { |
1470 DropOperands(3); | 1472 DropOperands(3); |
1471 } | 1473 } |
1472 break; | 1474 break; |
1473 | 1475 |
1474 case ObjectLiteral::Property::PROTOTYPE: | 1476 case ObjectLiteral::Property::PROTOTYPE: |
1475 UNREACHABLE(); | 1477 UNREACHABLE(); |
1476 break; | 1478 break; |
1477 | 1479 |
1478 case ObjectLiteral::Property::GETTER: | 1480 case ObjectLiteral::Property::GETTER: |
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3691 isolate->builtins()->OnStackReplacement()->entry(), | 3693 isolate->builtins()->OnStackReplacement()->entry(), |
3692 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3694 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3693 return ON_STACK_REPLACEMENT; | 3695 return ON_STACK_REPLACEMENT; |
3694 } | 3696 } |
3695 | 3697 |
3696 | 3698 |
3697 } // namespace internal | 3699 } // namespace internal |
3698 } // namespace v8 | 3700 } // namespace v8 |
3699 | 3701 |
3700 #endif // V8_TARGET_ARCH_IA32 | 3702 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |