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

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

Issue 24120007: Rename StubType MAP_TRANSITION to TRANSITION. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/objects.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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 return handler; 513 return handler;
514 } 514 }
515 515
516 516
517 Handle<Code> StubCache::ComputeStoreTransition(Handle<Name> name, 517 Handle<Code> StubCache::ComputeStoreTransition(Handle<Name> name,
518 Handle<JSObject> receiver, 518 Handle<JSObject> receiver,
519 LookupResult* lookup, 519 LookupResult* lookup,
520 Handle<Map> transition, 520 Handle<Map> transition,
521 StrictModeFlag strict_mode) { 521 StrictModeFlag strict_mode) {
522 Handle<Code> stub = FindStoreHandler( 522 Handle<Code> stub = FindStoreHandler(
523 name, receiver, Code::STORE_IC, Code::MAP_TRANSITION, strict_mode); 523 name, receiver, Code::STORE_IC, Code::TRANSITION, strict_mode);
524 if (!stub.is_null()) return stub; 524 if (!stub.is_null()) return stub;
525 525
526 StoreStubCompiler compiler(isolate_, strict_mode); 526 StoreStubCompiler compiler(isolate_, strict_mode);
527 Handle<Code> handler = 527 Handle<Code> handler =
528 compiler.CompileStoreTransition(receiver, lookup, transition, name); 528 compiler.CompileStoreTransition(receiver, lookup, transition, name);
529 HeapObject::UpdateMapCodeCache(receiver, name, handler); 529 HeapObject::UpdateMapCodeCache(receiver, name, handler);
530 return handler; 530 return handler;
531 } 531 }
532 532
533 533
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 696
697 697
698 Handle<Code> StubCache::ComputeKeyedStoreTransition( 698 Handle<Code> StubCache::ComputeKeyedStoreTransition(
699 Handle<Name> name, 699 Handle<Name> name,
700 Handle<JSObject> receiver, 700 Handle<JSObject> receiver,
701 LookupResult* lookup, 701 LookupResult* lookup,
702 Handle<Map> transition, 702 Handle<Map> transition,
703 StrictModeFlag strict_mode) { 703 StrictModeFlag strict_mode) {
704 Handle<Code> stub = FindStoreHandler( 704 Handle<Code> stub = FindStoreHandler(
705 name, receiver, Code::KEYED_STORE_IC, Code::MAP_TRANSITION, strict_mode); 705 name, receiver, Code::KEYED_STORE_IC, Code::TRANSITION, strict_mode);
706 if (!stub.is_null()) return stub; 706 if (!stub.is_null()) return stub;
707 707
708 KeyedStoreStubCompiler compiler(isolate(), strict_mode, STANDARD_STORE); 708 KeyedStoreStubCompiler compiler(isolate(), strict_mode, STANDARD_STORE);
709 Handle<Code> handler = 709 Handle<Code> handler =
710 compiler.CompileStoreTransition(receiver, lookup, transition, name); 710 compiler.CompileStoreTransition(receiver, lookup, transition, name);
711 HeapObject::UpdateMapCodeCache(receiver, name, handler); 711 HeapObject::UpdateMapCodeCache(receiver, name, handler);
712 return handler; 712 return handler;
713 } 713 }
714 714
715 715
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1842 &slow); 1842 &slow);
1843 1843
1844 // Handle store cache miss. 1844 // Handle store cache miss.
1845 GenerateRestoreName(masm(), &miss, name); 1845 GenerateRestoreName(masm(), &miss, name);
1846 TailCallBuiltin(masm(), MissBuiltin(kind())); 1846 TailCallBuiltin(masm(), MissBuiltin(kind()));
1847 1847
1848 GenerateRestoreName(masm(), &slow, name); 1848 GenerateRestoreName(masm(), &slow, name);
1849 TailCallBuiltin(masm(), SlowBuiltin(kind())); 1849 TailCallBuiltin(masm(), SlowBuiltin(kind()));
1850 1850
1851 // Return the generated code. 1851 // Return the generated code.
1852 return GetCode(kind(), Code::MAP_TRANSITION, name); 1852 return GetCode(kind(), Code::TRANSITION, name);
1853 } 1853 }
1854 1854
1855 1855
1856 Handle<Code> BaseStoreStubCompiler::CompileStoreField(Handle<JSObject> object, 1856 Handle<Code> BaseStoreStubCompiler::CompileStoreField(Handle<JSObject> object,
1857 LookupResult* lookup, 1857 LookupResult* lookup,
1858 Handle<Name> name) { 1858 Handle<Name> name) {
1859 Label miss; 1859 Label miss;
1860 1860
1861 HandlerFrontendHeader(object, receiver(), object, name, &miss); 1861 HandlerFrontendHeader(object, receiver(), object, name, &miss);
1862 1862
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 Handle<FunctionTemplateInfo>( 2252 Handle<FunctionTemplateInfo>(
2253 FunctionTemplateInfo::cast(signature->receiver())); 2253 FunctionTemplateInfo::cast(signature->receiver()));
2254 } 2254 }
2255 } 2255 }
2256 2256
2257 is_simple_api_call_ = true; 2257 is_simple_api_call_ = true;
2258 } 2258 }
2259 2259
2260 2260
2261 } } // namespace v8::internal 2261 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698