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

Side by Side Diff: src/hydrogen.h

Issue 7622014: Merge r8072 and r8884 to 3.2. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.2/
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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 // Helpers for flow graph construction. 794 // Helpers for flow graph construction.
795 enum GlobalPropertyAccess { 795 enum GlobalPropertyAccess {
796 kUseCell, 796 kUseCell,
797 kUseGeneric 797 kUseGeneric
798 }; 798 };
799 GlobalPropertyAccess LookupGlobalProperty(Variable* var, 799 GlobalPropertyAccess LookupGlobalProperty(Variable* var,
800 LookupResult* lookup, 800 LookupResult* lookup,
801 bool is_store); 801 bool is_store);
802 802
803 bool TryArgumentsAccess(Property* expr); 803 bool TryArgumentsAccess(Property* expr);
804
805 // Try to optimize fun.apply(receiver, arguments) pattern.
804 bool TryCallApply(Call* expr); 806 bool TryCallApply(Call* expr);
807
805 bool TryInline(Call* expr); 808 bool TryInline(Call* expr);
806 bool TryInlineBuiltinFunction(Call* expr, 809 bool TryInlineBuiltinFunction(Call* expr,
807 HValue* receiver, 810 HValue* receiver,
808 Handle<Map> receiver_map, 811 Handle<Map> receiver_map,
809 CheckType check_type); 812 CheckType check_type);
810 813
811 // If --trace-inlining, print a line of the inlining trace. Inlining 814 // If --trace-inlining, print a line of the inlining trace. Inlining
812 // succeeded if the reason string is NULL and failed if there is a 815 // succeeded if the reason string is NULL and failed if there is a
813 // non-NULL reason string. 816 // non-NULL reason string.
814 void TraceInline(Handle<JSFunction> target, const char* failure_reason); 817 void TraceInline(Handle<JSFunction> target, const char* failure_reason);
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 const char* filename_; 1146 const char* filename_;
1144 HeapStringAllocator string_allocator_; 1147 HeapStringAllocator string_allocator_;
1145 StringStream trace_; 1148 StringStream trace_;
1146 int indent_; 1149 int indent_;
1147 }; 1150 };
1148 1151
1149 1152
1150 } } // namespace v8::internal 1153 } } // namespace v8::internal
1151 1154
1152 #endif // V8_HYDROGEN_H_ 1155 #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