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

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

Issue 6576035: Landing for Zaheer. (Closed) Base URL: https://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 5939 matching lines...) Expand 10 before | Expand all | Expand 10 after
5950 __ Jump(r2); 5950 __ Jump(r2);
5951 } 5951 }
5952 5952
5953 5953
5954 void DirectCEntryStub::Generate(MacroAssembler* masm) { 5954 void DirectCEntryStub::Generate(MacroAssembler* masm) {
5955 __ ldr(pc, MemOperand(sp, 0)); 5955 __ ldr(pc, MemOperand(sp, 0));
5956 } 5956 }
5957 5957
5958 5958
5959 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, 5959 void DirectCEntryStub::GenerateCall(MacroAssembler* masm,
5960 ApiFunction *function) { 5960 ExternalReference function) {
5961 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()), 5961 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()),
5962 RelocInfo::CODE_TARGET)); 5962 RelocInfo::CODE_TARGET));
5963 __ mov(r2, 5963 __ mov(r2, Operand(function));
5964 Operand(ExternalReference(function, ExternalReference::DIRECT_CALL)));
5965 // Push return address (accessible to GC through exit frame pc). 5964 // Push return address (accessible to GC through exit frame pc).
5966 __ str(pc, MemOperand(sp, 0)); 5965 __ str(pc, MemOperand(sp, 0));
5967 __ Jump(r2); // Call the api function. 5966 __ Jump(r2); // Call the api function.
5968 } 5967 }
5969 5968
5970 5969
5971 void DirectCEntryStub::GenerateCall(MacroAssembler* masm, 5970 void DirectCEntryStub::GenerateCall(MacroAssembler* masm,
5972 Register target) { 5971 Register target) {
5973 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()), 5972 __ mov(lr, Operand(reinterpret_cast<intptr_t>(GetCode().location()),
5974 RelocInfo::CODE_TARGET)); 5973 RelocInfo::CODE_TARGET));
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
6128 __ strb(untagged_value, MemOperand(external_pointer, untagged_key)); 6127 __ strb(untagged_value, MemOperand(external_pointer, untagged_key));
6129 __ Ret(); 6128 __ Ret();
6130 } 6129 }
6131 6130
6132 6131
6133 #undef __ 6132 #undef __
6134 6133
6135 } } // namespace v8::internal 6134 } } // namespace v8::internal
6136 6135
6137 #endif // V8_TARGET_ARCH_ARM 6136 #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