| 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 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
| 10 #include "codegen.h" | 10 #include "codegen.h" |
| (...skipping 2519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2530 } | 2530 } |
| 2531 } | 2531 } |
| 2532 // Non-initializing assignments to consts are ignored. | 2532 // Non-initializing assignments to consts are ignored. |
| 2533 } | 2533 } |
| 2534 | 2534 |
| 2535 | 2535 |
| 2536 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { | 2536 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
| 2537 // Assignment to a property, using a named store IC. | 2537 // Assignment to a property, using a named store IC. |
| 2538 Property* prop = expr->target()->AsProperty(); | 2538 Property* prop = expr->target()->AsProperty(); |
| 2539 ASSERT(prop != NULL); | 2539 ASSERT(prop != NULL); |
| 2540 ASSERT(prop->key()->AsLiteral() != NULL); | 2540 ASSERT(prop->key()->IsLiteral()); |
| 2541 | 2541 |
| 2542 // Record source code position before IC call. | 2542 // Record source code position before IC call. |
| 2543 SetSourcePosition(expr->position()); | 2543 SetSourcePosition(expr->position()); |
| 2544 __ mov(r2, Operand(prop->key()->AsLiteral()->value())); | 2544 __ mov(r2, Operand(prop->key()->AsLiteral()->value())); |
| 2545 __ pop(r1); | 2545 __ pop(r1); |
| 2546 | 2546 |
| 2547 CallStoreIC(expr->AssignmentFeedbackId()); | 2547 CallStoreIC(expr->AssignmentFeedbackId()); |
| 2548 | 2548 |
| 2549 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 2549 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
| 2550 context()->Plug(r0); | 2550 context()->Plug(r0); |
| (...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4831 | 4831 |
| 4832 ASSERT(interrupt_address == | 4832 ASSERT(interrupt_address == |
| 4833 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4833 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4834 return OSR_AFTER_STACK_CHECK; | 4834 return OSR_AFTER_STACK_CHECK; |
| 4835 } | 4835 } |
| 4836 | 4836 |
| 4837 | 4837 |
| 4838 } } // namespace v8::internal | 4838 } } // namespace v8::internal |
| 4839 | 4839 |
| 4840 #endif // V8_TARGET_ARCH_ARM | 4840 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |