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