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

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

Issue 6546036: Combine typed and pixel arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix wrong external element call Created 9 years, 10 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 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 String* name, 126 String* name,
127 String* receiver); 127 String* receiver);
128 128
129 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadFunctionPrototype( 129 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadFunctionPrototype(
130 String* name, 130 String* name,
131 JSFunction* receiver); 131 JSFunction* receiver);
132 132
133 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadSpecialized( 133 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadSpecialized(
134 JSObject* receiver); 134 JSObject* receiver);
135 135
136 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadPixelArray(
137 JSObject* receiver);
138
139 // --- 136 // ---
140 137
141 MUST_USE_RESULT static MaybeObject* ComputeStoreField( 138 MUST_USE_RESULT static MaybeObject* ComputeStoreField(
142 String* name, 139 String* name,
143 JSObject* receiver, 140 JSObject* receiver,
144 int field_index, 141 int field_index,
145 Map* transition, 142 Map* transition,
146 Code::ExtraICState extra_ic_state); 143 Code::ExtraICState extra_ic_state);
147 144
148 MUST_USE_RESULT static MaybeObject* ComputeStoreNormal( 145 MUST_USE_RESULT static MaybeObject* ComputeStoreNormal(
(...skipping 20 matching lines...) Expand all
169 166
170 MUST_USE_RESULT static MaybeObject* ComputeKeyedStoreField( 167 MUST_USE_RESULT static MaybeObject* ComputeKeyedStoreField(
171 String* name, 168 String* name,
172 JSObject* receiver, 169 JSObject* receiver,
173 int field_index, 170 int field_index,
174 Map* transition = NULL); 171 Map* transition = NULL);
175 172
176 MUST_USE_RESULT static MaybeObject* ComputeKeyedStoreSpecialized( 173 MUST_USE_RESULT static MaybeObject* ComputeKeyedStoreSpecialized(
177 JSObject* receiver); 174 JSObject* receiver);
178 175
179 MUST_USE_RESULT static MaybeObject* ComputeKeyedStorePixelArray(
180 JSObject* receiver);
181
182 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadOrStoreExternalArray( 176 MUST_USE_RESULT static MaybeObject* ComputeKeyedLoadOrStoreExternalArray(
183 JSObject* receiver, 177 JSObject* receiver,
184 bool is_store); 178 bool is_store);
185 179
186 // --- 180 // ---
187 181
188 MUST_USE_RESULT static MaybeObject* ComputeCallField(int argc, 182 MUST_USE_RESULT static MaybeObject* ComputeCallField(int argc,
189 InLoopFlag in_loop, 183 InLoopFlag in_loop,
190 Code::Kind, 184 Code::Kind,
191 String* name, 185 String* name,
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 606
613 MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object, 607 MUST_USE_RESULT MaybeObject* CompileLoadInterceptor(JSObject* object,
614 JSObject* holder, 608 JSObject* holder,
615 String* name); 609 String* name);
616 610
617 MUST_USE_RESULT MaybeObject* CompileLoadArrayLength(String* name); 611 MUST_USE_RESULT MaybeObject* CompileLoadArrayLength(String* name);
618 MUST_USE_RESULT MaybeObject* CompileLoadStringLength(String* name); 612 MUST_USE_RESULT MaybeObject* CompileLoadStringLength(String* name);
619 MUST_USE_RESULT MaybeObject* CompileLoadFunctionPrototype(String* name); 613 MUST_USE_RESULT MaybeObject* CompileLoadFunctionPrototype(String* name);
620 614
621 MUST_USE_RESULT MaybeObject* CompileLoadSpecialized(JSObject* receiver); 615 MUST_USE_RESULT MaybeObject* CompileLoadSpecialized(JSObject* receiver);
622 MUST_USE_RESULT MaybeObject* CompileLoadPixelArray(JSObject* receiver);
623 616
624 private: 617 private:
625 MaybeObject* GetCode(PropertyType type, String* name); 618 MaybeObject* GetCode(PropertyType type, String* name);
626 }; 619 };
627 620
628 621
629 class StoreStubCompiler: public StubCompiler { 622 class StoreStubCompiler: public StubCompiler {
630 public: 623 public:
631 explicit StoreStubCompiler(Code::ExtraICState extra_ic_state) 624 explicit StoreStubCompiler(Code::ExtraICState extra_ic_state)
632 : extra_ic_state_(extra_ic_state) { } 625 : extra_ic_state_(extra_ic_state) { }
(...skipping 22 matching lines...) Expand all
655 648
656 class KeyedStoreStubCompiler: public StubCompiler { 649 class KeyedStoreStubCompiler: public StubCompiler {
657 public: 650 public:
658 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, 651 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object,
659 int index, 652 int index,
660 Map* transition, 653 Map* transition,
661 String* name); 654 String* name);
662 655
663 MUST_USE_RESULT MaybeObject* CompileStoreSpecialized(JSObject* receiver); 656 MUST_USE_RESULT MaybeObject* CompileStoreSpecialized(JSObject* receiver);
664 657
665 MUST_USE_RESULT MaybeObject* CompileStorePixelArray(JSObject* receiver);
666
667 private: 658 private:
668 MaybeObject* GetCode(PropertyType type, String* name); 659 MaybeObject* GetCode(PropertyType type, String* name);
669 }; 660 };
670 661
671 662
672 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call 663 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call
673 // IC stubs. 664 // IC stubs.
674 #define CUSTOM_CALL_IC_GENERATORS(V) \ 665 #define CUSTOM_CALL_IC_GENERATORS(V) \
675 V(ArrayPush) \ 666 V(ArrayPush) \
676 V(ArrayPop) \ 667 V(ArrayPop) \
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 bool is_simple_api_call_; 810 bool is_simple_api_call_;
820 FunctionTemplateInfo* expected_receiver_type_; 811 FunctionTemplateInfo* expected_receiver_type_;
821 CallHandlerInfo* api_call_info_; 812 CallHandlerInfo* api_call_info_;
822 }; 813 };
823 814
824 class ExternalArrayStubCompiler: public StubCompiler { 815 class ExternalArrayStubCompiler: public StubCompiler {
825 public: 816 public:
826 explicit ExternalArrayStubCompiler() {} 817 explicit ExternalArrayStubCompiler() {}
827 818
828 MUST_USE_RESULT MaybeObject* CompileKeyedLoadStub( 819 MUST_USE_RESULT MaybeObject* CompileKeyedLoadStub(
829 ExternalArrayType array_type, Code::Flags flags); 820 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags);
830 821
831 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( 822 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub(
832 ExternalArrayType array_type, Code::Flags flags); 823 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags);
833 824
834 private: 825 private:
835 MaybeObject* GetCode(Code::Flags flags); 826 MaybeObject* GetCode(Code::Flags flags);
836 }; 827 };
837 828
838 } } // namespace v8::internal 829 } } // namespace v8::internal
839 830
840 #endif // V8_STUB_CACHE_H_ 831 #endif // V8_STUB_CACHE_H_
OLDNEW
« src/objects.cc ('K') | « src/spaces.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698