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

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

Issue 11938013: Migrate ArrayLength (Keyed|Named)LoadIC to CodeStub (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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 __ add(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); 206 __ add(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag));
207 __ str(value, MemOperand(scratch2)); 207 __ str(value, MemOperand(scratch2));
208 208
209 // Update the write barrier. Make sure not to clobber the value. 209 // Update the write barrier. Make sure not to clobber the value.
210 __ mov(scratch1, value); 210 __ mov(scratch1, value);
211 __ RecordWrite( 211 __ RecordWrite(
212 elements, scratch2, scratch1, kLRHasNotBeenSaved, kDontSaveFPRegs); 212 elements, scratch2, scratch1, kLRHasNotBeenSaved, kDontSaveFPRegs);
213 } 213 }
214 214
215 215
216 void LoadIC::GenerateArrayLength(MacroAssembler* masm) {
217 // ----------- S t a t e -------------
218 // -- r2 : name
219 // -- lr : return address
220 // -- r0 : receiver
221 // -- sp[0] : receiver
222 // -----------------------------------
223 Label miss;
224
225 StubCompiler::GenerateLoadArrayLength(masm, r0, r3, &miss);
226 __ bind(&miss);
227 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC);
228 }
229
230
231 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { 216 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
232 // ----------- S t a t e ------------- 217 // ----------- S t a t e -------------
233 // -- r2 : name 218 // -- r2 : name
234 // -- lr : return address 219 // -- lr : return address
235 // -- r0 : receiver 220 // -- r0 : receiver
236 // -- sp[0] : receiver 221 // -- sp[0] : receiver
237 // ----------------------------------- 222 // -----------------------------------
238 Label miss; 223 Label miss;
239 224
240 StubCompiler::GenerateLoadFunctionPrototype(masm, r0, r1, r3, &miss); 225 StubCompiler::GenerateLoadFunctionPrototype(masm, r0, r1, r3, &miss);
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 } else { 1747 } else {
1763 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1748 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1764 patcher.EmitCondition(eq); 1749 patcher.EmitCondition(eq);
1765 } 1750 }
1766 } 1751 }
1767 1752
1768 1753
1769 } } // namespace v8::internal 1754 } } // namespace v8::internal
1770 1755
1771 #endif // V8_TARGET_ARCH_ARM 1756 #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