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 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1750 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); | 1750 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); |
1751 } | 1751 } |
1752 | 1752 |
1753 | 1753 |
1754 MaybeObject* MacroAssembler::TryTailCallStub(CodeStub* stub, Condition cond) { | 1754 MaybeObject* MacroAssembler::TryTailCallStub(CodeStub* stub, Condition cond) { |
1755 ASSERT(allow_stub_calls()); // Stub calls are not allowed in some stubs. | 1755 ASSERT(allow_stub_calls()); // Stub calls are not allowed in some stubs. |
1756 Object* result; | 1756 Object* result; |
1757 { MaybeObject* maybe_result = stub->TryGetCode(); | 1757 { MaybeObject* maybe_result = stub->TryGetCode(); |
1758 if (!maybe_result->ToObject(&result)) return maybe_result; | 1758 if (!maybe_result->ToObject(&result)) return maybe_result; |
1759 } | 1759 } |
1760 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond); | 1760 Jump(Handle<Code>(Code::cast(result)), RelocInfo::CODE_TARGET, cond); |
1761 return result; | 1761 return result; |
1762 } | 1762 } |
1763 | 1763 |
1764 | 1764 |
1765 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { | 1765 static int AddressOffset(ExternalReference ref0, ExternalReference ref1) { |
1766 return ref0.address() - ref1.address(); | 1766 return ref0.address() - ref1.address(); |
1767 } | 1767 } |
1768 | 1768 |
1769 | 1769 |
1770 MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( | 1770 MaybeObject* MacroAssembler::TryCallApiFunctionAndReturn( |
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3063 void CodePatcher::EmitCondition(Condition cond) { | 3063 void CodePatcher::EmitCondition(Condition cond) { |
3064 Instr instr = Assembler::instr_at(masm_.pc_); | 3064 Instr instr = Assembler::instr_at(masm_.pc_); |
3065 instr = (instr & ~kCondMask) | cond; | 3065 instr = (instr & ~kCondMask) | cond; |
3066 masm_.emit(instr); | 3066 masm_.emit(instr); |
3067 } | 3067 } |
3068 | 3068 |
3069 | 3069 |
3070 } } // namespace v8::internal | 3070 } } // namespace v8::internal |
3071 | 3071 |
3072 #endif // V8_TARGET_ARCH_ARM | 3072 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |