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