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_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 } | 2463 } |
2464 | 2464 |
2465 | 2465 |
2466 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { | 2466 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
2467 // Assignment to a property, using a named store IC. | 2467 // Assignment to a property, using a named store IC. |
2468 // eax : value | 2468 // eax : value |
2469 // esp[0] : receiver | 2469 // esp[0] : receiver |
2470 | 2470 |
2471 Property* prop = expr->target()->AsProperty(); | 2471 Property* prop = expr->target()->AsProperty(); |
2472 ASSERT(prop != NULL); | 2472 ASSERT(prop != NULL); |
2473 ASSERT(prop->key()->AsLiteral() != NULL); | 2473 ASSERT(prop->key()->IsLiteral()); |
2474 | 2474 |
2475 // Record source code position before IC call. | 2475 // Record source code position before IC call. |
2476 SetSourcePosition(expr->position()); | 2476 SetSourcePosition(expr->position()); |
2477 __ mov(ecx, prop->key()->AsLiteral()->value()); | 2477 __ mov(ecx, prop->key()->AsLiteral()->value()); |
2478 __ pop(edx); | 2478 __ pop(edx); |
2479 CallStoreIC(expr->AssignmentFeedbackId()); | 2479 CallStoreIC(expr->AssignmentFeedbackId()); |
2480 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 2480 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
2481 context()->Plug(eax); | 2481 context()->Plug(eax); |
2482 } | 2482 } |
2483 | 2483 |
(...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4796 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4796 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4797 Assembler::target_address_at(call_target_address, | 4797 Assembler::target_address_at(call_target_address, |
4798 unoptimized_code)); | 4798 unoptimized_code)); |
4799 return OSR_AFTER_STACK_CHECK; | 4799 return OSR_AFTER_STACK_CHECK; |
4800 } | 4800 } |
4801 | 4801 |
4802 | 4802 |
4803 } } // namespace v8::internal | 4803 } } // namespace v8::internal |
4804 | 4804 |
4805 #endif // V8_TARGET_ARCH_X87 | 4805 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |