| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3268 if (!context()->IsEffect()) { | 3268 if (!context()->IsEffect()) { |
| 3269 context()->PlugTOS(); | 3269 context()->PlugTOS(); |
| 3270 } | 3270 } |
| 3271 } else { | 3271 } else { |
| 3272 context()->Plug(eax); | 3272 context()->Plug(eax); |
| 3273 } | 3273 } |
| 3274 break; | 3274 break; |
| 3275 } | 3275 } |
| 3276 case NAMED_SUPER_PROPERTY: { | 3276 case NAMED_SUPER_PROPERTY: { |
| 3277 EmitNamedSuperPropertyStore(prop); | 3277 EmitNamedSuperPropertyStore(prop); |
| 3278 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
| 3278 if (expr->is_postfix()) { | 3279 if (expr->is_postfix()) { |
| 3279 if (!context()->IsEffect()) { | 3280 if (!context()->IsEffect()) { |
| 3280 context()->PlugTOS(); | 3281 context()->PlugTOS(); |
| 3281 } | 3282 } |
| 3282 } else { | 3283 } else { |
| 3283 context()->Plug(eax); | 3284 context()->Plug(eax); |
| 3284 } | 3285 } |
| 3285 break; | 3286 break; |
| 3286 } | 3287 } |
| 3287 case KEYED_SUPER_PROPERTY: { | 3288 case KEYED_SUPER_PROPERTY: { |
| 3288 EmitKeyedSuperPropertyStore(prop); | 3289 EmitKeyedSuperPropertyStore(prop); |
| 3290 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); |
| 3289 if (expr->is_postfix()) { | 3291 if (expr->is_postfix()) { |
| 3290 if (!context()->IsEffect()) { | 3292 if (!context()->IsEffect()) { |
| 3291 context()->PlugTOS(); | 3293 context()->PlugTOS(); |
| 3292 } | 3294 } |
| 3293 } else { | 3295 } else { |
| 3294 context()->Plug(eax); | 3296 context()->Plug(eax); |
| 3295 } | 3297 } |
| 3296 break; | 3298 break; |
| 3297 } | 3299 } |
| 3298 case KEYED_PROPERTY: { | 3300 case KEYED_PROPERTY: { |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3677 isolate->builtins()->OnStackReplacement()->entry(), | 3679 isolate->builtins()->OnStackReplacement()->entry(), |
| 3678 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3680 Assembler::target_address_at(call_target_address, unoptimized_code)); |
| 3679 return ON_STACK_REPLACEMENT; | 3681 return ON_STACK_REPLACEMENT; |
| 3680 } | 3682 } |
| 3681 | 3683 |
| 3682 | 3684 |
| 3683 } // namespace internal | 3685 } // namespace internal |
| 3684 } // namespace v8 | 3686 } // namespace v8 |
| 3685 | 3687 |
| 3686 #endif // V8_TARGET_ARCH_X87 | 3688 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |