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 5866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5877 __ Jump(r2); | 5877 __ Jump(r2); |
5878 } | 5878 } |
5879 | 5879 |
5880 | 5880 |
5881 void DirectCEntryStub::Generate(MacroAssembler* masm) { | 5881 void DirectCEntryStub::Generate(MacroAssembler* masm) { |
5882 __ ldr(pc, MemOperand(sp, 0)); | 5882 __ ldr(pc, MemOperand(sp, 0)); |
5883 } | 5883 } |
5884 | 5884 |
5885 | 5885 |
5886 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | 5886 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, |
5887 ApiFunction *function) { | 5887 ExternalReference function) { |
5888 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()), | 5888 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()), |
5889 RelocInfo::CODE_TARGET)); | 5889 RelocInfo::CODE_TARGET)); |
5890 __ mov(r2, | 5890 __ mov(r2, Operand(function)); |
5891 Operand(ExternalReference(function, ExternalReference::DIRECT_CALL))); | |
5892 // Push return address (accessible to GC through exit frame pc). | 5891 // Push return address (accessible to GC through exit frame pc). |
5893 __ str(pc, MemOperand(sp, 0)); | 5892 __ str(pc, MemOperand(sp, 0)); |
5894 __ Jump(r2); // Call the api function. | 5893 __ Jump(r2); // Call the api function. |
5895 } | 5894 } |
5896 | 5895 |
5897 | 5896 |
5898 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, | 5897 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, |
5899 Register target) { | 5898 Register target) { |
5900 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()), | 5899 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()), |
5901 RelocInfo::CODE_TARGET)); | 5900 RelocInfo::CODE_TARGET)); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6055 __ strb(untagged_value, MemOperand(external_pointer, untagged_key)); | 6054 __ strb(untagged_value, MemOperand(external_pointer, untagged_key)); |
6056 __ Ret(); | 6055 __ Ret(); |
6057 } | 6056 } |
6058 | 6057 |
6059 | 6058 |
6060 #undef __ | 6059 #undef __ |
6061 | 6060 |
6062 } } // namespace v8::internal | 6061 } } // namespace v8::internal |
6063 | 6062 |
6064 #endif // V8_TARGET_ARCH_ARM | 6063 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |