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

Side by Side Diff: src/hydrogen.h

Issue 7623016: Merge r8884 "Fix fun.apply(receiver, arguments) optimization" to 3.4 (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.4/
Patch Set: Created 9 years, 4 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 | « src/bootstrapper.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 // Helpers for flow graph construction. 865 // Helpers for flow graph construction.
866 enum GlobalPropertyAccess { 866 enum GlobalPropertyAccess {
867 kUseCell, 867 kUseCell,
868 kUseGeneric 868 kUseGeneric
869 }; 869 };
870 GlobalPropertyAccess LookupGlobalProperty(Variable* var, 870 GlobalPropertyAccess LookupGlobalProperty(Variable* var,
871 LookupResult* lookup, 871 LookupResult* lookup,
872 bool is_store); 872 bool is_store);
873 873
874 bool TryArgumentsAccess(Property* expr); 874 bool TryArgumentsAccess(Property* expr);
875
876 // Try to optimize fun.apply(receiver, arguments) pattern.
875 bool TryCallApply(Call* expr); 877 bool TryCallApply(Call* expr);
878
876 bool TryInline(Call* expr); 879 bool TryInline(Call* expr);
877 bool TryInlineBuiltinFunction(Call* expr, 880 bool TryInlineBuiltinFunction(Call* expr,
878 HValue* receiver, 881 HValue* receiver,
879 Handle<Map> receiver_map, 882 Handle<Map> receiver_map,
880 CheckType check_type); 883 CheckType check_type);
881 884
882 // If --trace-inlining, print a line of the inlining trace. Inlining 885 // If --trace-inlining, print a line of the inlining trace. Inlining
883 // succeeded if the reason string is NULL and failed if there is a 886 // succeeded if the reason string is NULL and failed if there is a
884 // non-NULL reason string. 887 // non-NULL reason string.
885 void TraceInline(Handle<JSFunction> target, 888 void TraceInline(Handle<JSFunction> target,
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 const char* filename_; 1227 const char* filename_;
1225 HeapStringAllocator string_allocator_; 1228 HeapStringAllocator string_allocator_;
1226 StringStream trace_; 1229 StringStream trace_;
1227 int indent_; 1230 int indent_;
1228 }; 1231 };
1229 1232
1230 1233
1231 } } // namespace v8::internal 1234 } } // namespace v8::internal
1232 1235
1233 #endif // V8_HYDROGEN_H_ 1236 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698