| 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 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2215 BailoutId return_id, | 2215 BailoutId return_id, |
| 2216 InliningKind inlining_kind); | 2216 InliningKind inlining_kind); |
| 2217 | 2217 |
| 2218 bool TryInlineCall(Call* expr); | 2218 bool TryInlineCall(Call* expr); |
| 2219 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); | 2219 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); |
| 2220 bool TryInlineGetter(Handle<JSFunction> getter, | 2220 bool TryInlineGetter(Handle<JSFunction> getter, |
| 2221 Handle<Map> receiver_map, | 2221 Handle<Map> receiver_map, |
| 2222 BailoutId ast_id, | 2222 BailoutId ast_id, |
| 2223 BailoutId return_id); | 2223 BailoutId return_id); |
| 2224 bool TryInlineSetter(Handle<JSFunction> setter, | 2224 bool TryInlineSetter(Handle<JSFunction> setter, |
| 2225 Handle<Map> receiver_map, |
| 2225 BailoutId id, | 2226 BailoutId id, |
| 2226 BailoutId assignment_id, | 2227 BailoutId assignment_id, |
| 2227 HValue* implicit_return_value); | 2228 HValue* implicit_return_value); |
| 2228 bool TryInlineApply(Handle<JSFunction> function, | 2229 bool TryInlineApply(Handle<JSFunction> function, |
| 2229 Call* expr, | 2230 Call* expr, |
| 2230 int arguments_count); | 2231 int arguments_count); |
| 2231 bool TryInlineBuiltinMethodCall(Call* expr, | 2232 bool TryInlineBuiltinMethodCall(Call* expr, |
| 2232 HValue* receiver, | 2233 HValue* receiver, |
| 2233 Handle<Map> receiver_map); | 2234 Handle<Map> receiver_map); |
| 2234 bool TryInlineBuiltinFunctionCall(Call* expr); | 2235 bool TryInlineBuiltinFunctionCall(Call* expr); |
| 2235 enum ApiCallType { | 2236 enum ApiCallType { |
| 2236 kCallApiFunction, | 2237 kCallApiFunction, |
| 2237 kCallApiMethod, | 2238 kCallApiMethod, |
| 2238 kCallApiGetter | 2239 kCallApiGetter, |
| 2240 kCallApiSetter |
| 2239 }; | 2241 }; |
| 2240 bool TryInlineApiMethodCall(Call* expr, | 2242 bool TryInlineApiMethodCall(Call* expr, |
| 2241 HValue* receiver, | 2243 HValue* receiver, |
| 2242 SmallMapList* receiver_types); | 2244 SmallMapList* receiver_types); |
| 2243 bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); | 2245 bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); |
| 2244 bool TryInlineApiGetter(Handle<JSFunction> function, | 2246 bool TryInlineApiGetter(Handle<JSFunction> function, |
| 2245 Handle<Map> receiver_map, | 2247 Handle<Map> receiver_map, |
| 2246 BailoutId ast_id); | 2248 BailoutId ast_id); |
| 2249 bool TryInlineApiSetter(Handle<JSFunction> function, |
| 2250 Handle<Map> receiver_map, |
| 2251 BailoutId ast_id); |
| 2247 bool TryInlineApiCall(Handle<JSFunction> function, | 2252 bool TryInlineApiCall(Handle<JSFunction> function, |
| 2248 HValue* receiver, | 2253 HValue* receiver, |
| 2249 SmallMapList* receiver_maps, | 2254 SmallMapList* receiver_maps, |
| 2250 int argc, | 2255 int argc, |
| 2251 BailoutId ast_id, | 2256 BailoutId ast_id, |
| 2252 ApiCallType call_type); | 2257 ApiCallType call_type); |
| 2253 | 2258 |
| 2254 // If --trace-inlining, print a line of the inlining trace. Inlining | 2259 // If --trace-inlining, print a line of the inlining trace. Inlining |
| 2255 // succeeded if the reason string is NULL and failed if there is a | 2260 // succeeded if the reason string is NULL and failed if there is a |
| 2256 // non-NULL reason string. | 2261 // non-NULL reason string. |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2736 } | 2741 } |
| 2737 | 2742 |
| 2738 private: | 2743 private: |
| 2739 HGraphBuilder* builder_; | 2744 HGraphBuilder* builder_; |
| 2740 }; | 2745 }; |
| 2741 | 2746 |
| 2742 | 2747 |
| 2743 } } // namespace v8::internal | 2748 } } // namespace v8::internal |
| 2744 | 2749 |
| 2745 #endif // V8_HYDROGEN_H_ | 2750 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |