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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "codegen.h" | 10 #include "codegen.h" |
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2470 } | 2470 } |
2471 } | 2471 } |
2472 // Non-initializing assignments to consts are ignored. | 2472 // Non-initializing assignments to consts are ignored. |
2473 } | 2473 } |
2474 | 2474 |
2475 | 2475 |
2476 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { | 2476 void FullCodeGenerator::EmitNamedPropertyAssignment(Assignment* expr) { |
2477 // Assignment to a property, using a named store IC. | 2477 // Assignment to a property, using a named store IC. |
2478 Property* prop = expr->target()->AsProperty(); | 2478 Property* prop = expr->target()->AsProperty(); |
2479 ASSERT(prop != NULL); | 2479 ASSERT(prop != NULL); |
2480 ASSERT(prop->key()->AsLiteral() != NULL); | 2480 ASSERT(prop->key()->IsLiteral()); |
2481 | 2481 |
2482 // Record source code position before IC call. | 2482 // Record source code position before IC call. |
2483 SetSourcePosition(expr->position()); | 2483 SetSourcePosition(expr->position()); |
2484 __ Move(rcx, prop->key()->AsLiteral()->value()); | 2484 __ Move(rcx, prop->key()->AsLiteral()->value()); |
2485 __ Pop(rdx); | 2485 __ Pop(rdx); |
2486 CallStoreIC(expr->AssignmentFeedbackId()); | 2486 CallStoreIC(expr->AssignmentFeedbackId()); |
2487 | 2487 |
2488 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); | 2488 PrepareForBailoutForId(expr->AssignmentId(), TOS_REG); |
2489 context()->Plug(rax); | 2489 context()->Plug(rax); |
2490 } | 2490 } |
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4810 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4810 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4811 Assembler::target_address_at(call_target_address, | 4811 Assembler::target_address_at(call_target_address, |
4812 unoptimized_code)); | 4812 unoptimized_code)); |
4813 return OSR_AFTER_STACK_CHECK; | 4813 return OSR_AFTER_STACK_CHECK; |
4814 } | 4814 } |
4815 | 4815 |
4816 | 4816 |
4817 } } // namespace v8::internal | 4817 } } // namespace v8::internal |
4818 | 4818 |
4819 #endif // V8_TARGET_ARCH_X64 | 4819 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |