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

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

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/string.js ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 JSFunction* receiver); 144 JSFunction* receiver);
145 145
146 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadSpecialized( 146 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadSpecialized(
147 JSObject* receiver); 147 JSObject* receiver);
148 148
149 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadPixelArray( 149 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadPixelArray(
150 JSObject* receiver); 150 JSObject* receiver);
151 151
152 // --- 152 // ---
153 153
154 MUST_USE_RESULT MaybeObject* ComputeStoreField(String* name, 154 MUST_USE_RESULT MaybeObject* ComputeStoreField(
155 JSObject* receiver, 155 String* name,
156 int field_index, 156 JSObject* receiver,
157 Map* transition = NULL); 157 int field_index,
158 Map* transition,
159 StrictModeFlag strict_mode);
158 160
159 MUST_USE_RESULT MaybeObject* ComputeStoreNormal(); 161 MUST_USE_RESULT MaybeObject* ComputeStoreNormal(
162 StrictModeFlag strict_mode);
160 163
161 MUST_USE_RESULT MaybeObject* ComputeStoreGlobal( 164 MUST_USE_RESULT MaybeObject* ComputeStoreGlobal(
162 String* name, 165 String* name,
163 GlobalObject* receiver, 166 GlobalObject* receiver,
164 JSGlobalPropertyCell* cell); 167 JSGlobalPropertyCell* cell,
168 StrictModeFlag strict_mode);
165 169
166 MUST_USE_RESULT MaybeObject* ComputeStoreCallback( 170 MUST_USE_RESULT MaybeObject* ComputeStoreCallback(
167 String* name, 171 String* name,
168 JSObject* receiver, 172 JSObject* receiver,
169 AccessorInfo* callback); 173 AccessorInfo* callback,
174 StrictModeFlag strict_mode);
170 175
171 MUST_USE_RESULT MaybeObject* ComputeStoreInterceptor( 176 MUST_USE_RESULT MaybeObject* ComputeStoreInterceptor(
172 String* name, 177 String* name,
173 JSObject* receiver); 178 JSObject* receiver,
179 StrictModeFlag strict_mode);
174 180
175 // --- 181 // ---
176 182
177 MUST_USE_RESULT MaybeObject* ComputeKeyedStoreField( 183 MUST_USE_RESULT MaybeObject* ComputeKeyedStoreField(
178 String* name, 184 String* name,
179 JSObject* receiver, 185 JSObject* receiver,
180 int field_index, 186 int field_index,
181 Map* transition = NULL); 187 Map* transition,
188 StrictModeFlag strict_mode);
182 189
183 MUST_USE_RESULT MaybeObject* ComputeKeyedStoreSpecialized( 190 MUST_USE_RESULT MaybeObject* ComputeKeyedStoreSpecialized(
184 JSObject* receiver); 191 JSObject* receiver,
192 StrictModeFlag strict_mode);
193
194 MUST_USE_RESULT MaybeObject* ComputeKeyedStorePixelArray(
195 JSObject* receiver,
196 StrictModeFlag strict_mode);
185 197
186 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadOrStoreExternalArray( 198 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadOrStoreExternalArray(
187 JSObject* receiver, 199 JSObject* receiver,
188 bool is_store); 200 bool is_store,
201 StrictModeFlag strict_mode);
189 202
190 // --- 203 // ---
191 204
192 MUST_USE_RESULT MaybeObject* ComputeCallField(int argc, 205 MUST_USE_RESULT MaybeObject* ComputeCallField(int argc,
193 InLoopFlag in_loop, 206 InLoopFlag in_loop,
194 Code::Kind, 207 Code::Kind,
195 String* name, 208 String* name,
196 Object* object, 209 Object* object,
197 JSObject* holder, 210 JSObject* holder,
198 int index); 211 int index);
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 MUST_USE_RESULT MaybeObject* CompileLoadSpecialized(JSObject* receiver); 635 MUST_USE_RESULT MaybeObject* CompileLoadSpecialized(JSObject* receiver);
623 MUST_USE_RESULT MaybeObject* CompileLoadPixelArray(JSObject* receiver); 636 MUST_USE_RESULT MaybeObject* CompileLoadPixelArray(JSObject* receiver);
624 637
625 private: 638 private:
626 MaybeObject* GetCode(PropertyType type, String* name); 639 MaybeObject* GetCode(PropertyType type, String* name);
627 }; 640 };
628 641
629 642
630 class StoreStubCompiler: public StubCompiler { 643 class StoreStubCompiler: public StubCompiler {
631 public: 644 public:
645 explicit StoreStubCompiler(StrictModeFlag strict_mode)
646 : strict_mode_(strict_mode) { }
647
632 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, 648 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object,
633 int index, 649 int index,
634 Map* transition, 650 Map* transition,
635 String* name); 651 String* name);
636 652
637 MUST_USE_RESULT MaybeObject* CompileStoreCallback(JSObject* object, 653 MUST_USE_RESULT MaybeObject* CompileStoreCallback(JSObject* object,
638 AccessorInfo* callbacks, 654 AccessorInfo* callbacks,
639 String* name); 655 String* name);
640 MUST_USE_RESULT MaybeObject* CompileStoreInterceptor(JSObject* object, 656 MUST_USE_RESULT MaybeObject* CompileStoreInterceptor(JSObject* object,
641 String* name); 657 String* name);
642 MUST_USE_RESULT MaybeObject* CompileStoreGlobal(GlobalObject* object, 658 MUST_USE_RESULT MaybeObject* CompileStoreGlobal(GlobalObject* object,
643 JSGlobalPropertyCell* holder, 659 JSGlobalPropertyCell* holder,
644 String* name); 660 String* name);
645 661
646 662
647 private: 663 private:
648 MaybeObject* GetCode(PropertyType type, String* name); 664 MaybeObject* GetCode(PropertyType type, String* name);
665
666 StrictModeFlag strict_mode_;
649 }; 667 };
650 668
651 669
652 class KeyedStoreStubCompiler: public StubCompiler { 670 class KeyedStoreStubCompiler: public StubCompiler {
653 public: 671 public:
672 explicit KeyedStoreStubCompiler(StrictModeFlag strict_mode)
673 : strict_mode_(strict_mode) { }
674
654 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, 675 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object,
655 int index, 676 int index,
656 Map* transition, 677 Map* transition,
657 String* name); 678 String* name);
658 679
659 MUST_USE_RESULT MaybeObject* CompileStoreSpecialized(JSObject* receiver); 680 MUST_USE_RESULT MaybeObject* CompileStoreSpecialized(JSObject* receiver);
660 681
682 MUST_USE_RESULT MaybeObject* CompileStorePixelArray(JSObject* receiver);
683
661 private: 684 private:
662 MaybeObject* GetCode(PropertyType type, String* name); 685 MaybeObject* GetCode(PropertyType type, String* name);
686
687 StrictModeFlag strict_mode_;
663 }; 688 };
664 689
665 690
666 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call 691 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call
667 // IC stubs. 692 // IC stubs.
668 #define CUSTOM_CALL_IC_GENERATORS(V) \ 693 #define CUSTOM_CALL_IC_GENERATORS(V) \
669 V(ArrayPush) \ 694 V(ArrayPush) \
670 V(ArrayPop) \ 695 V(ArrayPop) \
671 V(StringCharCodeAt) \ 696 V(StringCharCodeAt) \
672 V(StringCharAt) \ 697 V(StringCharAt) \
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( 850 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub(
826 ExternalArrayType array_type, Code::Flags flags); 851 ExternalArrayType array_type, Code::Flags flags);
827 852
828 private: 853 private:
829 MaybeObject* GetCode(Code::Flags flags); 854 MaybeObject* GetCode(Code::Flags flags);
830 }; 855 };
831 856
832 } } // namespace v8::internal 857 } } // namespace v8::internal
833 858
834 #endif // V8_STUB_CACHE_H_ 859 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/string.js ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698