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

Side by Side Diff: src/hydrogen.h

Issue 10270032: Sort functions when doing megamorphic dispatch/inlining so their (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 7 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') | src/hydrogen.cc » ('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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 GlobalPropertyAccess LookupGlobalProperty(Variable* var, 1003 GlobalPropertyAccess LookupGlobalProperty(Variable* var,
1004 LookupResult* lookup, 1004 LookupResult* lookup,
1005 bool is_store); 1005 bool is_store);
1006 1006
1007 void EnsureArgumentsArePushedForAccess(); 1007 void EnsureArgumentsArePushedForAccess();
1008 bool TryArgumentsAccess(Property* expr); 1008 bool TryArgumentsAccess(Property* expr);
1009 1009
1010 // Try to optimize fun.apply(receiver, arguments) pattern. 1010 // Try to optimize fun.apply(receiver, arguments) pattern.
1011 bool TryCallApply(Call* expr); 1011 bool TryCallApply(Call* expr);
1012 1012
1013 int InliningAstSize(Handle<JSFunction> target);
1013 bool TryInline(CallKind call_kind, 1014 bool TryInline(CallKind call_kind,
1014 Handle<JSFunction> target, 1015 Handle<JSFunction> target,
1015 ZoneList<Expression*>* arguments, 1016 ZoneList<Expression*>* arguments,
1016 HValue* receiver, 1017 HValue* receiver,
1017 int ast_id, 1018 int ast_id,
1018 int return_id, 1019 int return_id,
1019 ReturnHandlingFlag return_handling); 1020 ReturnHandlingFlag return_handling);
1020 1021
1021 bool TryInlineCall(Call* expr, bool drop_extra = false); 1022 bool TryInlineCall(Call* expr, bool drop_extra = false);
1022 bool TryInlineConstruct(CallNew* expr, HValue* receiver); 1023 bool TryInlineConstruct(CallNew* expr, HValue* receiver);
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 const char* filename_; 1411 const char* filename_;
1411 HeapStringAllocator string_allocator_; 1412 HeapStringAllocator string_allocator_;
1412 StringStream trace_; 1413 StringStream trace_;
1413 int indent_; 1414 int indent_;
1414 }; 1415 };
1415 1416
1416 1417
1417 } } // namespace v8::internal 1418 } } // namespace v8::internal
1418 1419
1419 #endif // V8_HYDROGEN_H_ 1420 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698