Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Side by Side Diff: src/x87/full-codegen-x87.cc

Issue 298143004: Minor cleanups & trivial refactoring related to Ast. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698