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 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2207 bool TryInline(Handle<JSFunction> target, | 2207 bool TryInline(Handle<JSFunction> target, |
2208 int arguments_count, | 2208 int arguments_count, |
2209 HValue* implicit_return_value, | 2209 HValue* implicit_return_value, |
2210 BailoutId ast_id, | 2210 BailoutId ast_id, |
2211 BailoutId return_id, | 2211 BailoutId return_id, |
2212 InliningKind inlining_kind); | 2212 InliningKind inlining_kind); |
2213 | 2213 |
2214 bool TryInlineCall(Call* expr); | 2214 bool TryInlineCall(Call* expr); |
2215 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); | 2215 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); |
2216 bool TryInlineGetter(Handle<JSFunction> getter, | 2216 bool TryInlineGetter(Handle<JSFunction> getter, |
2217 HValue * receiver, | |
Toon Verwaest
2014/02/04 13:25:31
remove space between HValue and *
| |
2218 Handle<Map> receiver_map, | |
2217 BailoutId ast_id, | 2219 BailoutId ast_id, |
2218 BailoutId return_id); | 2220 BailoutId return_id); |
2219 bool TryInlineSetter(Handle<JSFunction> setter, | 2221 bool TryInlineSetter(Handle<JSFunction> setter, |
2220 BailoutId id, | 2222 BailoutId id, |
2221 BailoutId assignment_id, | 2223 BailoutId assignment_id, |
2222 HValue* implicit_return_value); | 2224 HValue* implicit_return_value); |
2223 bool TryInlineApply(Handle<JSFunction> function, | 2225 bool TryInlineApply(Handle<JSFunction> function, |
2224 Call* expr, | 2226 Call* expr, |
2225 int arguments_count); | 2227 int arguments_count); |
2226 bool TryInlineBuiltinMethodCall(Call* expr, | 2228 bool TryInlineBuiltinMethodCall(Call* expr, |
2227 HValue* receiver, | 2229 HValue* receiver, |
2228 Handle<Map> receiver_map); | 2230 Handle<Map> receiver_map); |
2229 bool TryInlineBuiltinFunctionCall(Call* expr); | 2231 bool TryInlineBuiltinFunctionCall(Call* expr); |
2232 enum ApiCallType { | |
2233 kCallApiFunction, | |
2234 kCallApiMethod, | |
2235 kCallApiGetter | |
2236 }; | |
2230 bool TryInlineApiMethodCall(Call* expr, | 2237 bool TryInlineApiMethodCall(Call* expr, |
2231 HValue* receiver, | 2238 HValue* receiver, |
2232 Handle<Map> receiver_map); | 2239 Handle<Map> receiver_map); |
2233 bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); | 2240 bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); |
2234 bool TryInlineApiCall(Call* expr, | 2241 bool TryInlineApiGetter(Handle<JSFunction> function, |
2235 HValue* receiver, | 2242 HValue* receiver, |
2236 Handle<Map> receiver_map, | 2243 Handle<Map> receiver_map, |
2237 bool is_function_call); | 2244 BailoutId ast_id); |
2245 bool TryInlineApiCall(Handle<JSFunction> function, | |
2246 HValue* receiver, | |
2247 Handle<Map> receiver_map, | |
2248 int argc, | |
2249 BailoutId ast_id, | |
2250 ApiCallType call_type); | |
2238 | 2251 |
2239 // If --trace-inlining, print a line of the inlining trace. Inlining | 2252 // If --trace-inlining, print a line of the inlining trace. Inlining |
2240 // succeeded if the reason string is NULL and failed if there is a | 2253 // succeeded if the reason string is NULL and failed if there is a |
2241 // non-NULL reason string. | 2254 // non-NULL reason string. |
2242 void TraceInline(Handle<JSFunction> target, | 2255 void TraceInline(Handle<JSFunction> target, |
2243 Handle<JSFunction> caller, | 2256 Handle<JSFunction> caller, |
2244 const char* failure_reason); | 2257 const char* failure_reason); |
2245 | 2258 |
2246 void HandleGlobalVariableAssignment(Variable* var, | 2259 void HandleGlobalVariableAssignment(Variable* var, |
2247 HValue* value, | 2260 HValue* value, |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2716 } | 2729 } |
2717 | 2730 |
2718 private: | 2731 private: |
2719 HGraphBuilder* builder_; | 2732 HGraphBuilder* builder_; |
2720 }; | 2733 }; |
2721 | 2734 |
2722 | 2735 |
2723 } } // namespace v8::internal | 2736 } } // namespace v8::internal |
2724 | 2737 |
2725 #endif // V8_HYDROGEN_H_ | 2738 #endif // V8_HYDROGEN_H_ |
OLD | NEW |