Chromium Code Reviews| 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 899 int argc, | 899 int argc, |
| 900 Code::Kind kind, | 900 Code::Kind kind, |
| 901 Code::ExtraICState extra_state, | 901 Code::ExtraICState extra_state, |
| 902 InlineCacheHolderFlag cache_holder = OWN_MAP); | 902 InlineCacheHolderFlag cache_holder = OWN_MAP); |
| 903 | 903 |
| 904 Handle<Code> CompileCallField(Handle<JSObject> object, | 904 Handle<Code> CompileCallField(Handle<JSObject> object, |
| 905 Handle<JSObject> holder, | 905 Handle<JSObject> holder, |
| 906 PropertyIndex index, | 906 PropertyIndex index, |
| 907 Handle<Name> name); | 907 Handle<Name> name); |
| 908 | 908 |
| 909 void CompileHandlerFrontend(Handle<Object> object, | 909 Register HandlerFrontendHeader(Handle<Object> object, |
|
Igor Sheludko
2013/11/25 16:31:53
Probably is it worth adding a comment about what i
Toon Verwaest
2013/11/27 15:16:55
Done.
| |
| 910 Handle<JSObject> holder, | 910 Handle<JSObject> holder, |
| 911 Handle<Name> name, | 911 Handle<Name> name, |
| 912 CheckType check); | 912 CheckType check, |
| 913 Label* miss); | |
| 914 void HandlerFrontendFooter(Label* miss); | |
| 913 | 915 |
| 914 void CompileHandlerBackend(Handle<JSFunction> function); | 916 void CompileHandlerBackend(Handle<JSFunction> function); |
| 915 | 917 |
| 916 Handle<Code> CompileCallConstant(Handle<Object> object, | 918 Handle<Code> CompileCallConstant(Handle<Object> object, |
| 917 Handle<JSObject> holder, | 919 Handle<JSObject> holder, |
| 918 Handle<Name> name, | 920 Handle<Name> name, |
| 919 CheckType check, | 921 CheckType check, |
| 920 Handle<JSFunction> function); | 922 Handle<JSFunction> function); |
| 921 | 923 |
| 922 Handle<Code> CompileCallInterceptor(Handle<JSObject> object, | 924 Handle<Code> CompileCallInterceptor(Handle<JSObject> object, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 960 Handle<JSFunction> function, | 962 Handle<JSFunction> function, |
| 961 Handle<String> name); | 963 Handle<String> name); |
| 962 | 964 |
| 963 Handle<Code> GetCode(Code::StubType type, Handle<Name> name); | 965 Handle<Code> GetCode(Code::StubType type, Handle<Name> name); |
| 964 Handle<Code> GetCode(Handle<JSFunction> function); | 966 Handle<Code> GetCode(Handle<JSFunction> function); |
| 965 | 967 |
| 966 const ParameterCount& arguments() { return arguments_; } | 968 const ParameterCount& arguments() { return arguments_; } |
| 967 | 969 |
| 968 void GenerateNameCheck(Handle<Name> name, Label* miss); | 970 void GenerateNameCheck(Handle<Name> name, Label* miss); |
| 969 | 971 |
| 970 void GenerateGlobalReceiverCheck(Handle<JSObject> object, | |
| 971 Handle<JSObject> holder, | |
| 972 Handle<Name> name, | |
| 973 Label* miss); | |
| 974 | |
| 975 // Generates code to load the function from the cell checking that | 972 // Generates code to load the function from the cell checking that |
| 976 // it still contains the same function. | 973 // it still contains the same function. |
| 977 void GenerateLoadFunctionFromCell(Handle<Cell> cell, | 974 void GenerateLoadFunctionFromCell(Handle<Cell> cell, |
| 978 Handle<JSFunction> function, | 975 Handle<JSFunction> function, |
| 979 Label* miss); | 976 Label* miss); |
| 980 | 977 |
| 981 // Generates a jump to CallIC miss stub. | 978 // Generates a jump to CallIC miss stub. |
| 982 void GenerateMissBranch(); | 979 void GenerateMissBranch(); |
| 983 | 980 |
| 984 const ParameterCount arguments_; | 981 const ParameterCount arguments_; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1039 Handle<JSFunction> constant_function_; | 1036 Handle<JSFunction> constant_function_; |
| 1040 bool is_simple_api_call_; | 1037 bool is_simple_api_call_; |
| 1041 Handle<FunctionTemplateInfo> expected_receiver_type_; | 1038 Handle<FunctionTemplateInfo> expected_receiver_type_; |
| 1042 Handle<CallHandlerInfo> api_call_info_; | 1039 Handle<CallHandlerInfo> api_call_info_; |
| 1043 }; | 1040 }; |
| 1044 | 1041 |
| 1045 | 1042 |
| 1046 } } // namespace v8::internal | 1043 } } // namespace v8::internal |
| 1047 | 1044 |
| 1048 #endif // V8_STUB_CACHE_H_ | 1045 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |