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

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

Issue 91963003: Cleanup in the CallStubCompiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased / addressed feedback Created 7 years 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/ia32/stub-cache-ia32.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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 void PatchGlobalProxy(Handle<Object> object); 911 void PatchGlobalProxy(Handle<Object> object);
912 912
913 // Returns the register containing the holder of |name|. 913 // Returns the register containing the holder of |name|.
914 Register HandlerFrontendHeader(Handle<Object> object, 914 Register HandlerFrontendHeader(Handle<Object> object,
915 Handle<JSObject> holder, 915 Handle<JSObject> holder,
916 Handle<Name> name, 916 Handle<Name> name,
917 CheckType check, 917 CheckType check,
918 Label* miss); 918 Label* miss);
919 void HandlerFrontendFooter(Label* miss); 919 void HandlerFrontendFooter(Label* miss);
920 920
921 void CompileHandlerBackend(Handle<JSFunction> function); 921 void GenerateJumpFunctionIgnoreReceiver(Handle<JSFunction> function);
922 void GenerateJumpFunction(Handle<Object> object,
923 Handle<JSFunction> function);
924 void GenerateJumpFunction(Handle<Object> object,
925 Register function,
926 Label* miss);
927 // Use to call |actual_closure|, a closure with the same shared function info
928 // as |function|.
929 void GenerateJumpFunction(Handle<Object> object,
930 Register actual_closure,
931 Handle<JSFunction> function);
922 932
923 Handle<Code> CompileCallConstant(Handle<Object> object, 933 Handle<Code> CompileCallConstant(Handle<Object> object,
924 Handle<JSObject> holder, 934 Handle<JSObject> holder,
925 Handle<Name> name, 935 Handle<Name> name,
926 CheckType check, 936 CheckType check,
927 Handle<JSFunction> function); 937 Handle<JSFunction> function);
928 938
929 Handle<Code> CompileCallInterceptor(Handle<JSObject> object, 939 Handle<Code> CompileCallInterceptor(Handle<JSObject> object,
930 Handle<JSObject> holder, 940 Handle<JSObject> holder,
931 Handle<Name> name); 941 Handle<Name> name);
(...skipping 28 matching lines...) Expand all
960 CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR) 970 CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR)
961 #undef DECLARE_CALL_GENERATOR 971 #undef DECLARE_CALL_GENERATOR
962 972
963 Handle<Code> CompileFastApiCall(const CallOptimization& optimization, 973 Handle<Code> CompileFastApiCall(const CallOptimization& optimization,
964 Handle<Object> object, 974 Handle<Object> object,
965 Handle<JSObject> holder, 975 Handle<JSObject> holder,
966 Handle<Cell> cell, 976 Handle<Cell> cell,
967 Handle<JSFunction> function, 977 Handle<JSFunction> function,
968 Handle<String> name); 978 Handle<String> name);
969 979
980 CallKind call_kind();
981
970 Handle<Code> GetCode(Code::StubType type, Handle<Name> name); 982 Handle<Code> GetCode(Code::StubType type, Handle<Name> name);
971 Handle<Code> GetCode(Handle<JSFunction> function); 983 Handle<Code> GetCode(Handle<JSFunction> function);
972 984
973 const ParameterCount& arguments() { return arguments_; } 985 const ParameterCount& arguments() { return arguments_; }
974 986
975 void GenerateNameCheck(Handle<Name> name, Label* miss); 987 void GenerateNameCheck(Handle<Name> name, Label* miss);
976 988
977 // Generates code to load the function from the cell checking that 989 // Generates code to load the function from the cell checking that
978 // it still contains the same function. 990 // it still contains the same function.
979 void GenerateLoadFunctionFromCell(Handle<Cell> cell, 991 void GenerateLoadFunctionFromCell(Handle<Cell> cell,
980 Handle<JSFunction> function, 992 Handle<JSFunction> function,
981 Label* miss); 993 Label* miss);
982 994
995 void GenerateFunctionCheck(Register function, Register scratch, Label* miss);
996
983 // Generates a jump to CallIC miss stub. 997 // Generates a jump to CallIC miss stub.
984 void GenerateMissBranch(); 998 void GenerateMissBranch();
985 999
986 const ParameterCount arguments_; 1000 const ParameterCount arguments_;
987 const Code::Kind kind_; 1001 const Code::Kind kind_;
988 const Code::ExtraICState extra_state_; 1002 const Code::ExtraICState extra_state_;
989 const InlineCacheHolderFlag cache_holder_; 1003 const InlineCacheHolderFlag cache_holder_;
990 }; 1004 };
991 1005
992 1006
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 Handle<JSFunction> constant_function_; 1055 Handle<JSFunction> constant_function_;
1042 bool is_simple_api_call_; 1056 bool is_simple_api_call_;
1043 Handle<FunctionTemplateInfo> expected_receiver_type_; 1057 Handle<FunctionTemplateInfo> expected_receiver_type_;
1044 Handle<CallHandlerInfo> api_call_info_; 1058 Handle<CallHandlerInfo> api_call_info_;
1045 }; 1059 };
1046 1060
1047 1061
1048 } } // namespace v8::internal 1062 } } // namespace v8::internal
1049 1063
1050 #endif // V8_STUB_CACHE_H_ 1064 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698