Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: src/hydrogen.h

Issue 12263004: Allow full inlining of f.apply(this, arguments) calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/compiler/inline-function-apply.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 BailoutId ast_id, 1241 BailoutId ast_id,
1242 BailoutId return_id, 1242 BailoutId return_id,
1243 InliningKind inlining_kind); 1243 InliningKind inlining_kind);
1244 1244
1245 bool TryInlineCall(Call* expr, bool drop_extra = false); 1245 bool TryInlineCall(Call* expr, bool drop_extra = false);
1246 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); 1246 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value);
1247 bool TryInlineGetter(Handle<JSFunction> getter, Property* prop); 1247 bool TryInlineGetter(Handle<JSFunction> getter, Property* prop);
1248 bool TryInlineSetter(Handle<JSFunction> setter, 1248 bool TryInlineSetter(Handle<JSFunction> setter,
1249 Assignment* assignment, 1249 Assignment* assignment,
1250 HValue* implicit_return_value); 1250 HValue* implicit_return_value);
1251 bool TryInlineApply(Handle<JSFunction> function,
1252 Call* expr,
1253 int arguments_count);
1251 bool TryInlineBuiltinMethodCall(Call* expr, 1254 bool TryInlineBuiltinMethodCall(Call* expr,
1252 HValue* receiver, 1255 HValue* receiver,
1253 Handle<Map> receiver_map, 1256 Handle<Map> receiver_map,
1254 CheckType check_type); 1257 CheckType check_type);
1255 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra); 1258 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra);
1256 1259
1257 // If --trace-inlining, print a line of the inlining trace. Inlining 1260 // If --trace-inlining, print a line of the inlining trace. Inlining
1258 // succeeded if the reason string is NULL and failed if there is a 1261 // succeeded if the reason string is NULL and failed if there is a
1259 // non-NULL reason string. 1262 // non-NULL reason string.
1260 void TraceInline(Handle<JSFunction> target, 1263 void TraceInline(Handle<JSFunction> target,
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 const char* filename_; 1662 const char* filename_;
1660 HeapStringAllocator string_allocator_; 1663 HeapStringAllocator string_allocator_;
1661 StringStream trace_; 1664 StringStream trace_;
1662 int indent_; 1665 int indent_;
1663 }; 1666 };
1664 1667
1665 1668
1666 } } // namespace v8::internal 1669 } } // namespace v8::internal
1667 1670
1668 #endif // V8_HYDROGEN_H_ 1671 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | test/mjsunit/compiler/inline-function-apply.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698