OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6475 __ Jump(r2); | 6475 __ Jump(r2); |
6476 } | 6476 } |
6477 | 6477 |
6478 | 6478 |
6479 void DirectCEntryStub::Generate(MacroAssembler* masm) { | 6479 void DirectCEntryStub::Generate(MacroAssembler* masm) { |
6480 __ ldr(pc, MemOperand(sp, 0)); | 6480 __ ldr(pc, MemOperand(sp, 0)); |
6481 } | 6481 } |
6482 | 6482 |
6483 | 6483 |
6484 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | 6484 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, |
6485 ExternalReference function) { | |
6486 __ mov(r2, Operand(function)); | |
6487 GenerateCall(masm, r2); | |
6488 } | |
6489 | |
6490 | |
6491 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | |
6492 Register target) { | 6485 Register target) { |
6493 intptr_t code = | 6486 intptr_t code = |
6494 reinterpret_cast<intptr_t>(GetCode(masm->isolate()).location()); | 6487 reinterpret_cast<intptr_t>(GetCode(masm->isolate()).location()); |
6495 __ mov(lr, Operand(code, RelocInfo::CODE_TARGET)); | 6488 __ mov(lr, Operand(code, RelocInfo::CODE_TARGET)); |
6496 | 6489 |
6497 // Prevent literal pool emission during calculation of return address. | 6490 // Prevent literal pool emission during calculation of return address. |
6498 Assembler::BlockConstPoolScope block_const_pool(masm); | 6491 Assembler::BlockConstPoolScope block_const_pool(masm); |
6499 | 6492 |
6500 // Push return address (accessible to GC through exit frame pc). | 6493 // Push return address (accessible to GC through exit frame pc). |
6501 // Note that using pc with str is deprecated. | 6494 // Note that using pc with str is deprecated. |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7490 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 7483 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
7491 } | 7484 } |
7492 } | 7485 } |
7493 | 7486 |
7494 | 7487 |
7495 #undef __ | 7488 #undef __ |
7496 | 7489 |
7497 } } // namespace v8::internal | 7490 } } // namespace v8::internal |
7498 | 7491 |
7499 #endif // V8_TARGET_ARCH_ARM | 7492 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |