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

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

Issue 137693003: Remove ArrayPush from the custom call generators, and instead call directly to the handler in crank… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Set up the platform-specific descriptor on ARM Created 6 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
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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 } 878 }
879 879
880 Register transition_map() { 880 Register transition_map() {
881 return registers()[3]; 881 return registers()[3];
882 } 882 }
883 883
884 friend class BaseLoadStoreStubCompiler; 884 friend class BaseLoadStoreStubCompiler;
885 }; 885 };
886 886
887 887
888 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call
889 // IC stubs.
890 #define CUSTOM_CALL_IC_GENERATORS(V) \
891 V(ArrayPush)
892
893
894 class CallStubCompiler: public StubCompiler { 888 class CallStubCompiler: public StubCompiler {
895 public: 889 public:
896 CallStubCompiler(Isolate* isolate, 890 CallStubCompiler(Isolate* isolate,
897 int argc, 891 int argc,
898 Code::Kind kind, 892 Code::Kind kind,
899 ExtraICState extra_state, 893 ExtraICState extra_state,
900 InlineCacheHolderFlag cache_holder = OWN_MAP); 894 InlineCacheHolderFlag cache_holder = OWN_MAP);
901 895
902 Handle<Code> CompileCallField(Handle<JSObject> object, 896 Handle<Code> CompileCallField(Handle<JSObject> object,
903 Handle<JSObject> holder, 897 Handle<JSObject> holder,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 // Compiles a custom call constant/global IC. For constant calls cell is 944 // Compiles a custom call constant/global IC. For constant calls cell is
951 // NULL. Returns an empty handle if there is no custom call code for the 945 // NULL. Returns an empty handle if there is no custom call code for the
952 // given function. 946 // given function.
953 Handle<Code> CompileCustomCall(Handle<Object> object, 947 Handle<Code> CompileCustomCall(Handle<Object> object,
954 Handle<JSObject> holder, 948 Handle<JSObject> holder,
955 Handle<Cell> cell, 949 Handle<Cell> cell,
956 Handle<JSFunction> function, 950 Handle<JSFunction> function,
957 Handle<String> name, 951 Handle<String> name,
958 Code::StubType type); 952 Code::StubType type);
959 953
960 #define DECLARE_CALL_GENERATOR(name) \
961 Handle<Code> Compile##name##Call(Handle<Object> object, \
962 Handle<JSObject> holder, \
963 Handle<Cell> cell, \
964 Handle<JSFunction> function, \
965 Handle<String> fname, \
966 Code::StubType type);
967 CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR)
968 #undef DECLARE_CALL_GENERATOR
969
970 Handle<Code> CompileFastApiCall(const CallOptimization& optimization, 954 Handle<Code> CompileFastApiCall(const CallOptimization& optimization,
971 Handle<Object> object, 955 Handle<Object> object,
972 Handle<JSObject> holder, 956 Handle<JSObject> holder,
973 Handle<Cell> cell, 957 Handle<Cell> cell,
974 Handle<JSFunction> function, 958 Handle<JSFunction> function,
975 Handle<String> name); 959 Handle<String> name);
976 960
977 Handle<Code> GetCode(Code::StubType type, Handle<Name> name); 961 Handle<Code> GetCode(Code::StubType type, Handle<Name> name);
978 Handle<Code> GetCode(Handle<JSFunction> function); 962 Handle<Code> GetCode(Handle<JSFunction> function);
979 963
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 Handle<JSFunction> constant_function_; 1033 Handle<JSFunction> constant_function_;
1050 bool is_simple_api_call_; 1034 bool is_simple_api_call_;
1051 Handle<FunctionTemplateInfo> expected_receiver_type_; 1035 Handle<FunctionTemplateInfo> expected_receiver_type_;
1052 Handle<CallHandlerInfo> api_call_info_; 1036 Handle<CallHandlerInfo> api_call_info_;
1053 }; 1037 };
1054 1038
1055 1039
1056 } } // namespace v8::internal 1040 } } // namespace v8::internal
1057 1041
1058 #endif // V8_STUB_CACHE_H_ 1042 #endif // V8_STUB_CACHE_H_
OLDNEW
« src/hydrogen.cc ('K') | « src/isolate.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698