| 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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 | 
| 6 | 6 | 
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" | 
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" | 
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" | 
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" | 
| (...skipping 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2706 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { | 2706 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { | 
| 2707   // ----------- S t a t e ------------- | 2707   // ----------- S t a t e ------------- | 
| 2708   //  -- edx    : left | 2708   //  -- edx    : left | 
| 2709   //  -- eax    : right | 2709   //  -- eax    : right | 
| 2710   //  -- esp[0] : return address | 2710   //  -- esp[0] : return address | 
| 2711   // ----------------------------------- | 2711   // ----------------------------------- | 
| 2712 | 2712 | 
| 2713   // Load ecx with the allocation site.  We stick an undefined dummy value here | 2713   // Load ecx with the allocation site.  We stick an undefined dummy value here | 
| 2714   // and replace it with the real allocation site later when we instantiate this | 2714   // and replace it with the real allocation site later when we instantiate this | 
| 2715   // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). | 2715   // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). | 
| 2716   __ mov(ecx, handle(isolate()->heap()->undefined_value())); | 2716   __ mov(ecx, isolate()->factory()->undefined_value()); | 
| 2717 | 2717 | 
| 2718   // Make sure that we actually patched the allocation site. | 2718   // Make sure that we actually patched the allocation site. | 
| 2719   if (FLAG_debug_code) { | 2719   if (FLAG_debug_code) { | 
| 2720     __ test(ecx, Immediate(kSmiTagMask)); | 2720     __ test(ecx, Immediate(kSmiTagMask)); | 
| 2721     __ Assert(not_equal, kExpectedAllocationSite); | 2721     __ Assert(not_equal, kExpectedAllocationSite); | 
| 2722     __ cmp(FieldOperand(ecx, HeapObject::kMapOffset), | 2722     __ cmp(FieldOperand(ecx, HeapObject::kMapOffset), | 
| 2723            isolate()->factory()->allocation_site_map()); | 2723            isolate()->factory()->allocation_site_map()); | 
| 2724     __ Assert(equal, kExpectedAllocationSite); | 2724     __ Assert(equal, kExpectedAllocationSite); | 
| 2725   } | 2725   } | 
| 2726 | 2726 | 
| (...skipping 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5717                            kStackUnwindSpace, nullptr, return_value_operand, | 5717                            kStackUnwindSpace, nullptr, return_value_operand, | 
| 5718                            NULL); | 5718                            NULL); | 
| 5719 } | 5719 } | 
| 5720 | 5720 | 
| 5721 #undef __ | 5721 #undef __ | 
| 5722 | 5722 | 
| 5723 }  // namespace internal | 5723 }  // namespace internal | 
| 5724 }  // namespace v8 | 5724 }  // namespace v8 | 
| 5725 | 5725 | 
| 5726 #endif  // V8_TARGET_ARCH_IA32 | 5726 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW | 
|---|