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