| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |