| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1916 InstanceofStub stub(flags); | 1916 InstanceofStub stub(flags); |
| 1917 | 1917 |
| 1918 // Get the temp register reserved by the instruction. This needs to be edi as | 1918 // Get the temp register reserved by the instruction. This needs to be edi as |
| 1919 // its slot of the pushing of safepoint registers is used to communicate the | 1919 // its slot of the pushing of safepoint registers is used to communicate the |
| 1920 // offset to the location of the map check. | 1920 // offset to the location of the map check. |
| 1921 Register temp = ToRegister(instr->TempAt(0)); | 1921 Register temp = ToRegister(instr->TempAt(0)); |
| 1922 ASSERT(temp.is(edi)); | 1922 ASSERT(temp.is(edi)); |
| 1923 __ mov(InstanceofStub::right(), Immediate(instr->function())); | 1923 __ mov(InstanceofStub::right(), Immediate(instr->function())); |
| 1924 static const int kAdditionalDelta = 16; | 1924 static const int kAdditionalDelta = 16; |
| 1925 int delta = masm_->SizeOfCodeGeneratedSince(map_check) + kAdditionalDelta; | 1925 int delta = masm_->SizeOfCodeGeneratedSince(map_check) + kAdditionalDelta; |
| 1926 Label before_push_delta; | |
| 1927 __ bind(&before_push_delta); | |
| 1928 __ mov(temp, Immediate(delta)); | 1926 __ mov(temp, Immediate(delta)); |
| 1929 __ StoreToSafepointRegisterSlot(temp, temp); | 1927 __ StoreToSafepointRegisterSlot(temp, temp); |
| 1930 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, false); | 1928 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, false); |
| 1931 // Put the result value into the eax slot and restore all registers. | 1929 // Put the result value into the eax slot and restore all registers. |
| 1932 __ StoreToSafepointRegisterSlot(eax, eax); | 1930 __ StoreToSafepointRegisterSlot(eax, eax); |
| 1933 __ PopSafepointRegisters(); | 1931 __ PopSafepointRegisters(); |
| 1934 } | 1932 } |
| 1935 | 1933 |
| 1936 | 1934 |
| 1937 static Condition ComputeCompareCondition(Token::Value op) { | 1935 static Condition ComputeCompareCondition(Token::Value op) { |
| (...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3876 ASSERT(osr_pc_offset_ == -1); | 3874 ASSERT(osr_pc_offset_ == -1); |
| 3877 osr_pc_offset_ = masm()->pc_offset(); | 3875 osr_pc_offset_ = masm()->pc_offset(); |
| 3878 } | 3876 } |
| 3879 | 3877 |
| 3880 | 3878 |
| 3881 #undef __ | 3879 #undef __ |
| 3882 | 3880 |
| 3883 } } // namespace v8::internal | 3881 } } // namespace v8::internal |
| 3884 | 3882 |
| 3885 #endif // V8_TARGET_ARCH_IA32 | 3883 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |