| 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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 | 1820 |
| 1821 | 1821 |
| 1822 void LCodeGen::DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { | 1822 void LCodeGen::DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr) { |
| 1823 __ PushSafepointRegisters(); | 1823 __ PushSafepointRegisters(); |
| 1824 | 1824 |
| 1825 InstanceofStub stub(InstanceofStub::kNoFlags); | 1825 InstanceofStub stub(InstanceofStub::kNoFlags); |
| 1826 | 1826 |
| 1827 __ push(ToRegister(instr->InputAt(0))); | 1827 __ push(ToRegister(instr->InputAt(0))); |
| 1828 __ Push(instr->function()); | 1828 __ Push(instr->function()); |
| 1829 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 1829 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 1830 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); | 1830 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
| 1831 RecordSafepointWithRegisters( | |
| 1832 instr->pointer_map(), 0, Safepoint::kNoDeoptimizationIndex); | |
| 1833 __ movq(kScratchRegister, rax); | 1831 __ movq(kScratchRegister, rax); |
| 1834 __ PopSafepointRegisters(); | 1832 __ PopSafepointRegisters(); |
| 1835 __ testq(kScratchRegister, kScratchRegister); | 1833 __ testq(kScratchRegister, kScratchRegister); |
| 1836 Label load_false; | 1834 Label load_false; |
| 1837 Label done; | 1835 Label done; |
| 1838 __ j(not_zero, &load_false); | 1836 __ j(not_zero, &load_false); |
| 1839 __ LoadRoot(rax, Heap::kTrueValueRootIndex); | 1837 __ LoadRoot(rax, Heap::kTrueValueRootIndex); |
| 1840 __ jmp(&done); | 1838 __ jmp(&done); |
| 1841 __ bind(&load_false); | 1839 __ bind(&load_false); |
| 1842 __ LoadRoot(rax, Heap::kFalseValueRootIndex); | 1840 __ LoadRoot(rax, Heap::kFalseValueRootIndex); |
| (...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3617 RegisterEnvironmentForDeoptimization(environment); | 3615 RegisterEnvironmentForDeoptimization(environment); |
| 3618 ASSERT(osr_pc_offset_ == -1); | 3616 ASSERT(osr_pc_offset_ == -1); |
| 3619 osr_pc_offset_ = masm()->pc_offset(); | 3617 osr_pc_offset_ = masm()->pc_offset(); |
| 3620 } | 3618 } |
| 3621 | 3619 |
| 3622 #undef __ | 3620 #undef __ |
| 3623 | 3621 |
| 3624 } } // namespace v8::internal | 3622 } } // namespace v8::internal |
| 3625 | 3623 |
| 3626 #endif // V8_TARGET_ARCH_X64 | 3624 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |