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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 3531 matching lines...) Loading... |
3542 __ bind(&try_array); | 3542 __ bind(&try_array); |
3543 __ CompareRoot(FieldOperand(scratch, 0), Heap::kFixedArrayMapRootIndex); | 3543 __ CompareRoot(FieldOperand(scratch, 0), Heap::kFixedArrayMapRootIndex); |
3544 __ j(not_equal, ¬_array); | 3544 __ j(not_equal, ¬_array); |
3545 HandleArrayCases(masm, receiver, name, vector, slot, scratch, true, &miss); | 3545 HandleArrayCases(masm, receiver, name, vector, slot, scratch, true, &miss); |
3546 | 3546 |
3547 __ bind(¬_array); | 3547 __ bind(¬_array); |
3548 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex); | 3548 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex); |
3549 __ j(not_equal, &miss); | 3549 __ j(not_equal, &miss); |
3550 __ push(slot); | 3550 __ push(slot); |
3551 __ push(vector); | 3551 __ push(vector); |
3552 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3552 Code::Flags code_flags = |
3553 Code::ComputeHandlerFlags(Code::LOAD_IC)); | 3553 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::LOAD_IC)); |
3554 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, | 3554 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::LOAD_IC, code_flags, |
3555 receiver, name, vector, scratch); | 3555 receiver, name, vector, scratch); |
3556 __ pop(vector); | 3556 __ pop(vector); |
3557 __ pop(slot); | 3557 __ pop(slot); |
3558 | 3558 |
3559 __ bind(&miss); | 3559 __ bind(&miss); |
3560 LoadIC::GenerateMiss(masm); | 3560 LoadIC::GenerateMiss(masm); |
3561 } | 3561 } |
3562 | 3562 |
3563 | 3563 |
(...skipping 239 matching lines...) Loading... |
3803 HandlePolymorphicStoreCase(masm, receiver, key, vector, slot, scratch, true, | 3803 HandlePolymorphicStoreCase(masm, receiver, key, vector, slot, scratch, true, |
3804 &miss); | 3804 &miss); |
3805 | 3805 |
3806 __ bind(¬_array); | 3806 __ bind(¬_array); |
3807 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex); | 3807 __ CompareRoot(scratch, Heap::kmegamorphic_symbolRootIndex); |
3808 __ j(not_equal, &miss); | 3808 __ j(not_equal, &miss); |
3809 | 3809 |
3810 __ pop(value); | 3810 __ pop(value); |
3811 __ push(slot); | 3811 __ push(slot); |
3812 __ push(vector); | 3812 __ push(vector); |
3813 Code::Flags code_flags = Code::RemoveTypeAndHolderFromFlags( | 3813 Code::Flags code_flags = |
3814 Code::ComputeHandlerFlags(Code::STORE_IC)); | 3814 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
3815 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, | 3815 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, code_flags, |
3816 receiver, key, slot, no_reg); | 3816 receiver, key, slot, no_reg); |
3817 __ pop(vector); | 3817 __ pop(vector); |
3818 __ pop(slot); | 3818 __ pop(slot); |
3819 Label no_pop_miss; | 3819 Label no_pop_miss; |
3820 __ jmp(&no_pop_miss); | 3820 __ jmp(&no_pop_miss); |
3821 | 3821 |
3822 __ bind(&miss); | 3822 __ bind(&miss); |
3823 __ pop(value); | 3823 __ pop(value); |
3824 __ bind(&no_pop_miss); | 3824 __ bind(&no_pop_miss); |
(...skipping 1682 matching lines...) Loading... |
5507 return_value_operand, NULL); | 5507 return_value_operand, NULL); |
5508 } | 5508 } |
5509 | 5509 |
5510 | 5510 |
5511 #undef __ | 5511 #undef __ |
5512 | 5512 |
5513 } // namespace internal | 5513 } // namespace internal |
5514 } // namespace v8 | 5514 } // namespace v8 |
5515 | 5515 |
5516 #endif // V8_TARGET_ARCH_X87 | 5516 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |