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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR) | 993 CUSTOM_CALL_IC_GENERATORS(DECLARE_CALL_GENERATOR) |
994 #undef DECLARE_CALL_GENERATOR | 994 #undef DECLARE_CALL_GENERATOR |
995 | 995 |
996 Handle<Code> CompileFastApiCall(const CallOptimization& optimization, | 996 Handle<Code> CompileFastApiCall(const CallOptimization& optimization, |
997 Handle<Object> object, | 997 Handle<Object> object, |
998 Handle<JSObject> holder, | 998 Handle<JSObject> holder, |
999 Handle<Cell> cell, | 999 Handle<Cell> cell, |
1000 Handle<JSFunction> function, | 1000 Handle<JSFunction> function, |
1001 Handle<String> name); | 1001 Handle<String> name); |
1002 | 1002 |
1003 CallKind call_kind(); | |
1004 | |
1005 Handle<Code> GetCode(Code::StubType type, Handle<Name> name); | 1003 Handle<Code> GetCode(Code::StubType type, Handle<Name> name); |
1006 Handle<Code> GetCode(Handle<JSFunction> function); | 1004 Handle<Code> GetCode(Handle<JSFunction> function); |
1007 | 1005 |
1008 const ParameterCount& arguments() { return arguments_; } | 1006 const ParameterCount& arguments() { return arguments_; } |
1009 | 1007 |
1010 void GenerateNameCheck(Handle<Name> name, Label* miss); | 1008 void GenerateNameCheck(Handle<Name> name, Label* miss); |
1011 | 1009 |
1012 // Generates code to load the function from the cell checking that | 1010 // Generates code to load the function from the cell checking that |
1013 // it still contains the same function. | 1011 // it still contains the same function. |
1014 void GenerateLoadFunctionFromCell(Handle<Cell> cell, | 1012 void GenerateLoadFunctionFromCell(Handle<Cell> cell, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 Handle<JSFunction> constant_function_; | 1075 Handle<JSFunction> constant_function_; |
1078 bool is_simple_api_call_; | 1076 bool is_simple_api_call_; |
1079 Handle<FunctionTemplateInfo> expected_receiver_type_; | 1077 Handle<FunctionTemplateInfo> expected_receiver_type_; |
1080 Handle<CallHandlerInfo> api_call_info_; | 1078 Handle<CallHandlerInfo> api_call_info_; |
1081 }; | 1079 }; |
1082 | 1080 |
1083 | 1081 |
1084 } } // namespace v8::internal | 1082 } } // namespace v8::internal |
1085 | 1083 |
1086 #endif // V8_STUB_CACHE_H_ | 1084 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |