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

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

Issue 11941016: Migrate FunctionPrototype (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/ic.cc ('k') | src/stub-cache.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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 Handle<Code> ComputeKeyedLoadConstant(Handle<String> name, 127 Handle<Code> ComputeKeyedLoadConstant(Handle<String> name,
128 Handle<JSObject> receiver, 128 Handle<JSObject> receiver,
129 Handle<JSObject> holder, 129 Handle<JSObject> holder,
130 Handle<JSFunction> value); 130 Handle<JSFunction> value);
131 131
132 Handle<Code> ComputeKeyedLoadInterceptor(Handle<String> name, 132 Handle<Code> ComputeKeyedLoadInterceptor(Handle<String> name,
133 Handle<JSObject> receiver, 133 Handle<JSObject> receiver,
134 Handle<JSObject> holder); 134 Handle<JSObject> holder);
135 135
136 Handle<Code> ComputeKeyedLoadFunctionPrototype(Handle<String> name,
137 Handle<JSFunction> receiver);
138
139 // --- 136 // ---
140 137
141 Handle<Code> ComputeStoreField(Handle<String> name, 138 Handle<Code> ComputeStoreField(Handle<String> name,
142 Handle<JSObject> receiver, 139 Handle<JSObject> receiver,
143 int field_index, 140 int field_index,
144 Handle<Map> transition, 141 Handle<Map> transition,
145 StrictModeFlag strict_mode); 142 StrictModeFlag strict_mode);
146 143
147 Handle<Code> ComputeStoreNormal(StrictModeFlag strict_mode); 144 Handle<Code> ComputeStoreNormal(StrictModeFlag strict_mode);
148 145
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 654
658 Handle<Code> CompileLoadConstant(Handle<String> name, 655 Handle<Code> CompileLoadConstant(Handle<String> name,
659 Handle<JSObject> object, 656 Handle<JSObject> object,
660 Handle<JSObject> holder, 657 Handle<JSObject> holder,
661 Handle<JSFunction> value); 658 Handle<JSFunction> value);
662 659
663 Handle<Code> CompileLoadInterceptor(Handle<JSObject> object, 660 Handle<Code> CompileLoadInterceptor(Handle<JSObject> object,
664 Handle<JSObject> holder, 661 Handle<JSObject> holder,
665 Handle<String> name); 662 Handle<String> name);
666 663
667 Handle<Code> CompileLoadFunctionPrototype(Handle<String> name);
668
669 Handle<Code> CompileLoadElement(Handle<Map> receiver_map); 664 Handle<Code> CompileLoadElement(Handle<Map> receiver_map);
670 665
671 Handle<Code> CompileLoadPolymorphic(MapHandleList* receiver_maps, 666 Handle<Code> CompileLoadPolymorphic(MapHandleList* receiver_maps,
672 CodeHandleList* handler_ics); 667 CodeHandleList* handler_ics);
673 668
674 static void GenerateLoadDictionaryElement(MacroAssembler* masm); 669 static void GenerateLoadDictionaryElement(MacroAssembler* masm);
675 670
676 private: 671 private:
677 Handle<Code> GetCode(Code::StubType type, 672 Handle<Code> GetCode(Code::StubType type,
678 Handle<String> name, 673 Handle<String> name,
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 Handle<JSFunction> constant_function_; 912 Handle<JSFunction> constant_function_;
918 bool is_simple_api_call_; 913 bool is_simple_api_call_;
919 Handle<FunctionTemplateInfo> expected_receiver_type_; 914 Handle<FunctionTemplateInfo> expected_receiver_type_;
920 Handle<CallHandlerInfo> api_call_info_; 915 Handle<CallHandlerInfo> api_call_info_;
921 }; 916 };
922 917
923 918
924 } } // namespace v8::internal 919 } } // namespace v8::internal
925 920
926 #endif // V8_STUB_CACHE_H_ 921 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698