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