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

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

Issue 11794045: Use POLYMORPHIC for polymorphic Keyed(Load|Store)IC (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 | « no previous file | 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 3309 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 __ mov(ip, Operand(receiver_maps->at(current))); 3320 __ mov(ip, Operand(receiver_maps->at(current)));
3321 __ cmp(r2, ip); 3321 __ cmp(r2, ip);
3322 __ Jump(handler_ics->at(current), RelocInfo::CODE_TARGET, eq); 3322 __ Jump(handler_ics->at(current), RelocInfo::CODE_TARGET, eq);
3323 } 3323 }
3324 3324
3325 __ bind(&miss); 3325 __ bind(&miss);
3326 Handle<Code> miss_ic = isolate()->builtins()->KeyedLoadIC_Miss(); 3326 Handle<Code> miss_ic = isolate()->builtins()->KeyedLoadIC_Miss();
3327 __ Jump(miss_ic, RelocInfo::CODE_TARGET, al); 3327 __ Jump(miss_ic, RelocInfo::CODE_TARGET, al);
3328 3328
3329 // Return the generated code. 3329 // Return the generated code.
3330 return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); 3330 return GetCode(Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
3331 } 3331 }
3332 3332
3333 3333
3334 Handle<Code> KeyedStoreStubCompiler::CompileStoreField(Handle<JSObject> object, 3334 Handle<Code> KeyedStoreStubCompiler::CompileStoreField(Handle<JSObject> object,
3335 int index, 3335 int index,
3336 Handle<Map> transition, 3336 Handle<Map> transition,
3337 Handle<String> name) { 3337 Handle<String> name) {
3338 // ----------- S t a t e ------------- 3338 // ----------- S t a t e -------------
3339 // -- r0 : value 3339 // -- r0 : value
3340 // -- r1 : name 3340 // -- r1 : name
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
3424 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al); 3424 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al);
3425 __ bind(&next_map); 3425 __ bind(&next_map);
3426 } 3426 }
3427 } 3427 }
3428 3428
3429 __ bind(&miss); 3429 __ bind(&miss);
3430 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss(); 3430 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss();
3431 __ Jump(miss_ic, RelocInfo::CODE_TARGET, al); 3431 __ Jump(miss_ic, RelocInfo::CODE_TARGET, al);
3432 3432
3433 // Return the generated code. 3433 // Return the generated code.
3434 return GetCode(Code::NORMAL, factory()->empty_string(), MEGAMORPHIC); 3434 return GetCode(Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
3435 } 3435 }
3436 3436
3437 3437
3438 Handle<Code> ConstructStubCompiler::CompileConstructStub( 3438 Handle<Code> ConstructStubCompiler::CompileConstructStub(
3439 Handle<JSFunction> function) { 3439 Handle<JSFunction> function) {
3440 // ----------- S t a t e ------------- 3440 // ----------- S t a t e -------------
3441 // -- r0 : argc 3441 // -- r0 : argc
3442 // -- r1 : constructor 3442 // -- r1 : constructor
3443 // -- lr : return address 3443 // -- lr : return address
3444 // -- [sp] : last argument 3444 // -- [sp] : last argument
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
4372 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4372 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4373 } 4373 }
4374 } 4374 }
4375 4375
4376 4376
4377 #undef __ 4377 #undef __
4378 4378
4379 } } // namespace v8::internal 4379 } } // namespace v8::internal
4380 4380
4381 #endif // V8_TARGET_ARCH_ARM 4381 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698