| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
| 10 #include "codegen.h" | 10 #include "codegen.h" |
| (...skipping 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 } | 2469 } |
| 2470 | 2470 |
| 2471 | 2471 |
| 2472 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { | 2472 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
| 2473 // Assignment to a property, using a named store IC. | 2473 // Assignment to a property, using a named store IC. |
| 2474 // eax : value | 2474 // eax : value |
| 2475 // esp[0] : receiver | 2475 // esp[0] : receiver |
| 2476 | 2476 |
| 2477 Property* prop = expr->target()->AsProperty(); | 2477 Property* prop = expr->target()->AsProperty(); |
| 2478 ASSERT(prop != NULL); | 2478 ASSERT(prop != NULL); |
| 2479 ASSERT(prop->key()->AsLiteral() != NULL); | 2479 ASSERT(prop->key()->IsLiteral()); |
| 2480 | 2480 |
| 2481 // Record source code position before IC call. | 2481 // Record source code position before IC call. |
| 2482 SetSourcePosition(expr->position()); | 2482 SetSourcePosition(expr->position()); |
| 2483 __ mov(ecx, prop->key()->AsLiteral()->value()); | 2483 __ mov(ecx, prop->key()->AsLiteral()->value()); |
| 2484 __ pop(edx); | 2484 __ pop(edx); |
| 2485 CallStoreIC(expr->AssignmentFeedbackId()); | 2485 CallStoreIC(expr->AssignmentFeedbackId()); |
| 2486 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 2486 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
| 2487 context()->Plug(eax); | 2487 context()->Plug(eax); |
| 2488 } | 2488 } |
| 2489 | 2489 |
| (...skipping 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4803 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4803 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4804 Assembler::target_address_at(call_target_address, | 4804 Assembler::target_address_at(call_target_address, |
| 4805 unoptimized_code)); | 4805 unoptimized_code)); |
| 4806 return OSR_AFTER_STACK_CHECK; | 4806 return OSR_AFTER_STACK_CHECK; |
| 4807 } | 4807 } |
| 4808 | 4808 |
| 4809 | 4809 |
| 4810 } } // namespace v8::internal | 4810 } } // namespace v8::internal |
| 4811 | 4811 |
| 4812 #endif // V8_TARGET_ARCH_IA32 | 4812 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |