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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 12052011: MIPS: Migrate ArrayLength (Keyed|Named)LoadIC to CodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/ic-mips.cc ('k') | no next file » | 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 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3196 LookupPostInterceptor(holder, name, &lookup); 3196 LookupPostInterceptor(holder, name, &lookup);
3197 GenerateLoadInterceptor(receiver, holder, &lookup, a1, a0, a2, a3, t0, name, 3197 GenerateLoadInterceptor(receiver, holder, &lookup, a1, a0, a2, a3, t0, name,
3198 &miss); 3198 &miss);
3199 __ bind(&miss); 3199 __ bind(&miss);
3200 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC); 3200 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3201 3201
3202 return GetCode(Code::INTERCEPTOR, name); 3202 return GetCode(Code::INTERCEPTOR, name);
3203 } 3203 }
3204 3204
3205 3205
3206 Handle<Code> KeyedLoadStubCompiler::CompileLoadArrayLength(
3207 Handle<String> name) {
3208 // ----------- S t a t e -------------
3209 // -- ra : return address
3210 // -- a0 : key
3211 // -- a1 : receiver
3212 // -----------------------------------
3213 Label miss;
3214
3215 // Check the key is the cached one.
3216 __ Branch(&miss, ne, a0, Operand(name));
3217
3218 GenerateLoadArrayLength(masm(), a1, a2, &miss);
3219 __ bind(&miss);
3220 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3221
3222 return GetCode(Code::CALLBACKS, name);
3223 }
3224
3225
3226 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype( 3206 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype(
3227 Handle<String> name) { 3207 Handle<String> name) {
3228 // ----------- S t a t e ------------- 3208 // ----------- S t a t e -------------
3229 // -- ra : return address 3209 // -- ra : return address
3230 // -- a0 : key 3210 // -- a0 : key
3231 // -- a1 : receiver 3211 // -- a1 : receiver
3232 // ----------------------------------- 3212 // -----------------------------------
3233 Label miss; 3213 Label miss;
3234 3214
3235 Counters* counters = masm()->isolate()->counters(); 3215 Counters* counters = masm()->isolate()->counters();
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
4403 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4383 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4404 } 4384 }
4405 } 4385 }
4406 4386
4407 4387
4408 #undef __ 4388 #undef __
4409 4389
4410 } } // namespace v8::internal 4390 } } // namespace v8::internal
4411 4391
4412 #endif // V8_TARGET_ARCH_MIPS 4392 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698