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

Side by Side Diff: src/arm/ic-arm.cc

Issue 155373: Port the function prototype load stub to ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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 | « no previous file | src/arm/stub-cache-arm.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 185 }
186 186
187 187
188 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { 188 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
189 // ----------- S t a t e ------------- 189 // ----------- S t a t e -------------
190 // -- r2 : name 190 // -- r2 : name
191 // -- lr : return address 191 // -- lr : return address
192 // -- [sp] : receiver 192 // -- [sp] : receiver
193 // ----------------------------------- 193 // -----------------------------------
194 194
195 // NOTE: Right now, this code always misses on ARM which is 195 Label miss;
196 // sub-optimal. We should port the fast case code from IA-32.
197 196
198 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Miss)); 197 // Load receiver.
199 __ Jump(ic, RelocInfo::CODE_TARGET); 198 __ ldr(r0, MemOperand(sp, 0));
199
200 StubCompiler::GenerateLoadFunctionPrototype(masm, r0, r1, r3, &miss);
201 __ bind(&miss);
202 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
200 } 203 }
201 204
202 205
203 // Defined in ic.cc. 206 // Defined in ic.cc.
204 Object* CallIC_Miss(Arguments args); 207 Object* CallIC_Miss(Arguments args);
205 208
206 void CallIC::GenerateMegamorphic(MacroAssembler* masm, int argc) { 209 void CallIC::GenerateMegamorphic(MacroAssembler* masm, int argc) {
207 // ----------- S t a t e ------------- 210 // ----------- S t a t e -------------
208 // -- lr: return address 211 // -- lr: return address
209 // ----------------------------------- 212 // -----------------------------------
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 801
799 // Perform tail call to the entry. 802 // Perform tail call to the entry.
800 __ TailCallRuntime(f, 3); 803 __ TailCallRuntime(f, 3);
801 } 804 }
802 805
803 806
804 #undef __ 807 #undef __
805 808
806 809
807 } } // namespace v8::internal 810 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698