Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 6462029: Direct call accessor getter callbacks (arm implementation). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/code-stubs-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698