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 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1978 Register temp = ToRegister(instr->TempAt(0)); | 1978 Register temp = ToRegister(instr->TempAt(0)); |
1979 ASSERT(temp.is(r4)); | 1979 ASSERT(temp.is(r4)); |
1980 __ mov(InstanceofStub::right(), Operand(instr->function())); | 1980 __ mov(InstanceofStub::right(), Operand(instr->function())); |
1981 static const int kAdditionalDelta = 4; | 1981 static const int kAdditionalDelta = 4; |
1982 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta; | 1982 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta; |
1983 Label before_push_delta; | 1983 Label before_push_delta; |
1984 __ bind(&before_push_delta); | 1984 __ bind(&before_push_delta); |
1985 __ BlockConstPoolFor(kAdditionalDelta); | 1985 __ BlockConstPoolFor(kAdditionalDelta); |
1986 __ mov(temp, Operand(delta * kPointerSize)); | 1986 __ mov(temp, Operand(delta * kPointerSize)); |
1987 __ StoreToSafepointRegisterSlot(temp, temp); | 1987 __ StoreToSafepointRegisterSlot(temp, temp); |
1988 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); | 1988 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
1989 ASSERT_EQ(kAdditionalDelta, | |
1990 masm_->InstructionsGeneratedSince(&before_push_delta)); | |
1991 RecordSafepointWithRegisters( | |
1992 instr->pointer_map(), 0, Safepoint::kNoDeoptimizationIndex); | |
1993 // Put the result value into the result register slot and | 1989 // Put the result value into the result register slot and |
1994 // restore all registers. | 1990 // restore all registers. |
1995 __ StoreToSafepointRegisterSlot(result, result); | 1991 __ StoreToSafepointRegisterSlot(result, result); |
1996 | 1992 |
1997 __ PopSafepointRegisters(); | 1993 __ PopSafepointRegisters(); |
1998 } | 1994 } |
1999 | 1995 |
2000 | 1996 |
2001 static Condition ComputeCompareCondition(Token::Value op) { | 1997 static Condition ComputeCompareCondition(Token::Value op) { |
2002 switch (op) { | 1998 switch (op) { |
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3848 ASSERT(!environment->HasBeenRegistered()); | 3844 ASSERT(!environment->HasBeenRegistered()); |
3849 RegisterEnvironmentForDeoptimization(environment); | 3845 RegisterEnvironmentForDeoptimization(environment); |
3850 ASSERT(osr_pc_offset_ == -1); | 3846 ASSERT(osr_pc_offset_ == -1); |
3851 osr_pc_offset_ = masm()->pc_offset(); | 3847 osr_pc_offset_ = masm()->pc_offset(); |
3852 } | 3848 } |
3853 | 3849 |
3854 | 3850 |
3855 #undef __ | 3851 #undef __ |
3856 | 3852 |
3857 } } // namespace v8::internal | 3853 } } // namespace v8::internal |
OLD | NEW |