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

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

Issue 11973008: Replace special IC builtins and stubs in the map's cache by codestubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 11 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.cc ('k') | 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 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // -- sp[0] : receiver 221 // -- sp[0] : receiver
222 // ----------------------------------- 222 // -----------------------------------
223 Label miss; 223 Label miss;
224 224
225 StubCompiler::GenerateLoadArrayLength(masm, r0, r3, &miss); 225 StubCompiler::GenerateLoadArrayLength(masm, r0, r3, &miss);
226 __ bind(&miss); 226 __ bind(&miss);
227 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); 227 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
228 } 228 }
229 229
230 230
231 void LoadIC::GenerateStringLength(MacroAssembler* masm, bool support_wrappers) {
232 // ----------- S t a t e -------------
233 // -- r2 : name
234 // -- lr : return address
235 // -- r0 : receiver
236 // -- sp[0] : receiver
237 // -----------------------------------
238 Label miss;
239
240 StubCompiler::GenerateLoadStringLength(masm, r0, r1, r3, &miss,
241 support_wrappers);
242 // Cache miss: Jump to runtime.
243 __ bind(&miss);
244 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
245 }
246
247
248 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { 231 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
249 // ----------- S t a t e ------------- 232 // ----------- S t a t e -------------
250 // -- r2 : name 233 // -- r2 : name
251 // -- lr : return address 234 // -- lr : return address
252 // -- r0 : receiver 235 // -- r0 : receiver
253 // -- sp[0] : receiver 236 // -- sp[0] : receiver
254 // ----------------------------------- 237 // -----------------------------------
255 Label miss; 238 Label miss;
256 239
257 StubCompiler::GenerateLoadFunctionPrototype(masm, r0, r1, r3, &miss); 240 StubCompiler::GenerateLoadFunctionPrototype(masm, r0, r1, r3, &miss);
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 } else { 1762 } else {
1780 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1763 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1781 patcher.EmitCondition(eq); 1764 patcher.EmitCondition(eq);
1782 } 1765 }
1783 } 1766 }
1784 1767
1785 1768
1786 } } // namespace v8::internal 1769 } } // namespace v8::internal
1787 1770
1788 #endif // V8_TARGET_ARCH_ARM 1771 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698