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

Side by Side Diff: src/arm/stub-cache-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/ic-arm.cc ('k') | src/ast.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 3189 matching lines...) Expand 10 before | Expand all | Expand 10 after
3200 LookupPostInterceptor(holder, name, &lookup); 3200 LookupPostInterceptor(holder, name, &lookup);
3201 GenerateLoadInterceptor(receiver, holder, &lookup, r1, r0, r2, r3, r4, name, 3201 GenerateLoadInterceptor(receiver, holder, &lookup, r1, r0, r2, r3, r4, name,
3202 &miss); 3202 &miss);
3203 __ bind(&miss); 3203 __ bind(&miss);
3204 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); 3204 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3205 3205
3206 return GetCode(Code::INTERCEPTOR, name); 3206 return GetCode(Code::INTERCEPTOR, name);
3207 } 3207 }
3208 3208
3209 3209
3210 Handle<Code> KeyedLoadStubCompiler::CompileLoadArrayLength(
3211 Handle<String> name) {
3212 // ----------- S t a t e -------------
3213 // -- lr : return address
3214 // -- r0 : key
3215 // -- r1 : receiver
3216 // -----------------------------------
3217 Label miss;
3218
3219 // Check the key is the cached one.
3220 __ cmp(r0, Operand(name));
3221 __ b(ne, &miss);
3222
3223 GenerateLoadArrayLength(masm(), r1, r2, &miss);
3224 __ bind(&miss);
3225 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3226
3227 return GetCode(Code::CALLBACKS, name);
3228 }
3229
3230
3231 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype( 3210 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype(
3232 Handle<String> name) { 3211 Handle<String> name) {
3233 // ----------- S t a t e ------------- 3212 // ----------- S t a t e -------------
3234 // -- lr : return address 3213 // -- lr : return address
3235 // -- r0 : key 3214 // -- r0 : key
3236 // -- r1 : receiver 3215 // -- r1 : receiver
3237 // ----------------------------------- 3216 // -----------------------------------
3238 Label miss; 3217 Label miss;
3239 3218
3240 Counters* counters = masm()->isolate()->counters(); 3219 Counters* counters = masm()->isolate()->counters();
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
4350 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4329 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4351 } 4330 }
4352 } 4331 }
4353 4332
4354 4333
4355 #undef __ 4334 #undef __
4356 4335
4357 } } // namespace v8::internal 4336 } } // namespace v8::internal
4358 4337
4359 #endif // V8_TARGET_ARCH_ARM 4338 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698