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

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

Issue 10735003: Handle accessors on the prototype chain in StoreICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added a unit test. Created 8 years, 5 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/stub-cache-mips.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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 165 Handle<Code> ComputeStoreViaSetter(Handle<String> name,
166 Handle<JSObject> receiver, 166 Handle<JSObject> receiver,
167 Handle<JSObject> holder,
167 Handle<JSFunction> setter, 168 Handle<JSFunction> setter,
168 StrictModeFlag strict_mode); 169 StrictModeFlag strict_mode);
169 170
170 Handle<Code> ComputeStoreInterceptor(Handle<String> name, 171 Handle<Code> ComputeStoreInterceptor(Handle<String> name,
171 Handle<JSObject> receiver, 172 Handle<JSObject> receiver,
172 StrictModeFlag strict_mode); 173 StrictModeFlag strict_mode);
173 174
174 // --- 175 // ---
175 176
176 Handle<Code> ComputeKeyedStoreField(Handle<String> name, 177 Handle<Code> ComputeKeyedStoreField(Handle<String> name,
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 691
691 Handle<Code> CompileStoreField(Handle<JSObject> object, 692 Handle<Code> CompileStoreField(Handle<JSObject> object,
692 int index, 693 int index,
693 Handle<Map> transition, 694 Handle<Map> transition,
694 Handle<String> name); 695 Handle<String> name);
695 696
696 Handle<Code> CompileStoreCallback(Handle<JSObject> object, 697 Handle<Code> CompileStoreCallback(Handle<JSObject> object,
697 Handle<AccessorInfo> callback, 698 Handle<AccessorInfo> callback,
698 Handle<String> name); 699 Handle<String> name);
699 700
700 Handle<Code> CompileStoreViaSetter(Handle<JSObject> receiver, 701 Handle<Code> CompileStoreViaSetter(Handle<String> name,
701 Handle<JSFunction> setter, 702 Handle<JSObject> receiver,
702 Handle<String> name); 703 Handle<JSObject> holder,
704 Handle<JSFunction> setter);
703 705
704 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, 706 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object,
705 Handle<String> name); 707 Handle<String> name);
706 708
707 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object, 709 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object,
708 Handle<JSGlobalPropertyCell> holder, 710 Handle<JSGlobalPropertyCell> holder,
709 Handle<String> name); 711 Handle<String> name);
710 712
711 private: 713 private:
712 Handle<Code> GetCode(Code::StubType type, Handle<String> name); 714 Handle<Code> GetCode(Code::StubType type, Handle<String> name);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 Handle<JSFunction> constant_function_; 916 Handle<JSFunction> constant_function_;
915 bool is_simple_api_call_; 917 bool is_simple_api_call_;
916 Handle<FunctionTemplateInfo> expected_receiver_type_; 918 Handle<FunctionTemplateInfo> expected_receiver_type_;
917 Handle<CallHandlerInfo> api_call_info_; 919 Handle<CallHandlerInfo> api_call_info_;
918 }; 920 };
919 921
920 922
921 } } // namespace v8::internal 923 } } // namespace v8::internal
922 924
923 #endif // V8_STUB_CACHE_H_ 925 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698