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

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 514073003: X87: Minor-key-ify BinaryOpICWithAllocationSiteStub. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3283 matching lines...) Expand 10 before | Expand all | Expand 10 after
3294 if (FLAG_debug_code) { 3294 if (FLAG_debug_code) {
3295 __ test(ecx, Immediate(kSmiTagMask)); 3295 __ test(ecx, Immediate(kSmiTagMask));
3296 __ Assert(not_equal, kExpectedAllocationSite); 3296 __ Assert(not_equal, kExpectedAllocationSite);
3297 __ cmp(FieldOperand(ecx, HeapObject::kMapOffset), 3297 __ cmp(FieldOperand(ecx, HeapObject::kMapOffset),
3298 isolate()->factory()->allocation_site_map()); 3298 isolate()->factory()->allocation_site_map());
3299 __ Assert(equal, kExpectedAllocationSite); 3299 __ Assert(equal, kExpectedAllocationSite);
3300 } 3300 }
3301 3301
3302 // Tail call into the stub that handles binary operations with allocation 3302 // Tail call into the stub that handles binary operations with allocation
3303 // sites. 3303 // sites.
3304 BinaryOpWithAllocationSiteStub stub(isolate(), state_); 3304 BinaryOpWithAllocationSiteStub stub(isolate(), state());
3305 __ TailCallStub(&stub); 3305 __ TailCallStub(&stub);
3306 } 3306 }
3307 3307
3308 3308
3309 void ICCompareStub::GenerateSmis(MacroAssembler* masm) { 3309 void ICCompareStub::GenerateSmis(MacroAssembler* masm) {
3310 DCHECK(state_ == CompareIC::SMI); 3310 DCHECK(state_ == CompareIC::SMI);
3311 Label miss; 3311 Label miss;
3312 __ mov(ecx, edx); 3312 __ mov(ecx, edx);
3313 __ or_(ecx, eax); 3313 __ or_(ecx, eax);
3314 __ JumpIfNotSmi(ecx, &miss, Label::kNear); 3314 __ JumpIfNotSmi(ecx, &miss, Label::kNear);
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
4658 Operand(ebp, 7 * kPointerSize), 4658 Operand(ebp, 7 * kPointerSize),
4659 NULL); 4659 NULL);
4660 } 4660 }
4661 4661
4662 4662
4663 #undef __ 4663 #undef __
4664 4664
4665 } } // namespace v8::internal 4665 } } // namespace v8::internal
4666 4666
4667 #endif // V8_TARGET_ARCH_X87 4667 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698