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

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

Issue 10534091: Implemented StoreIC for setters. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 Handle<Code> ComputeStoreGlobal(Handle<String> name, 155 Handle<Code> ComputeStoreGlobal(Handle<String> name,
156 Handle<GlobalObject> receiver, 156 Handle<GlobalObject> receiver,
157 Handle<JSGlobalPropertyCell> cell, 157 Handle<JSGlobalPropertyCell> cell,
158 StrictModeFlag strict_mode); 158 StrictModeFlag strict_mode);
159 159
160 Handle<Code> ComputeStoreCallback(Handle<String> name, 160 Handle<Code> ComputeStoreCallback(Handle<String> name,
161 Handle<JSObject> receiver, 161 Handle<JSObject> receiver,
162 Handle<AccessorInfo> callback, 162 Handle<AccessorInfo> callback,
163 StrictModeFlag strict_mode); 163 StrictModeFlag strict_mode);
164 164
165 Handle<Code> ComputeStoreViaSetter(Handle<String> name,
166 Handle<JSObject> receiver,
167 Handle<JSFunction> setter,
168 StrictModeFlag strict_mode);
169
165 Handle<Code> ComputeStoreInterceptor(Handle<String> name, 170 Handle<Code> ComputeStoreInterceptor(Handle<String> name,
166 Handle<JSObject> receiver, 171 Handle<JSObject> receiver,
167 StrictModeFlag strict_mode); 172 StrictModeFlag strict_mode);
168 173
169 // --- 174 // ---
170 175
171 Handle<Code> ComputeKeyedStoreField(Handle<String> name, 176 Handle<Code> ComputeKeyedStoreField(Handle<String> name,
172 Handle<JSObject> receiver, 177 Handle<JSObject> receiver,
173 int field_index, 178 int field_index,
174 Handle<Map> transition, 179 Handle<Map> transition,
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 691
687 Handle<Code> CompileStoreField(Handle<JSObject> object, 692 Handle<Code> CompileStoreField(Handle<JSObject> object,
688 int index, 693 int index,
689 Handle<Map> transition, 694 Handle<Map> transition,
690 Handle<String> name); 695 Handle<String> name);
691 696
692 Handle<Code> CompileStoreCallback(Handle<JSObject> object, 697 Handle<Code> CompileStoreCallback(Handle<JSObject> object,
693 Handle<AccessorInfo> callback, 698 Handle<AccessorInfo> callback,
694 Handle<String> name); 699 Handle<String> name);
695 700
701 Handle<Code> CompileStoreViaSetter(Handle<JSObject> receiver,
702 Handle<JSFunction> setter,
703 Handle<String> name);
704
696 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, 705 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object,
697 Handle<String> name); 706 Handle<String> name);
698 707
699 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object, 708 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object,
700 Handle<JSGlobalPropertyCell> holder, 709 Handle<JSGlobalPropertyCell> holder,
701 Handle<String> name); 710 Handle<String> name);
702 711
703 private: 712 private:
704 Handle<Code> GetCode(PropertyType type, Handle<String> name); 713 Handle<Code> GetCode(PropertyType type, Handle<String> name);
705 714
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 Handle<JSFunction> constant_function_; 915 Handle<JSFunction> constant_function_;
907 bool is_simple_api_call_; 916 bool is_simple_api_call_;
908 Handle<FunctionTemplateInfo> expected_receiver_type_; 917 Handle<FunctionTemplateInfo> expected_receiver_type_;
909 Handle<CallHandlerInfo> api_call_info_; 918 Handle<CallHandlerInfo> api_call_info_;
910 }; 919 };
911 920
912 921
913 } } // namespace v8::internal 922 } } // namespace v8::internal
914 923
915 #endif // V8_STUB_CACHE_H_ 924 #endif // V8_STUB_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698