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

Side by Side Diff: src/hydrogen.h

Issue 7049005: Refactor TraceInlining method of hydrogen so it works correctly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: adopt Kevin's suggestion that makes it less bad. Created 9 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') | 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 bool TryCallApply(Call* expr); 850 bool TryCallApply(Call* expr);
851 bool TryInline(Call* expr); 851 bool TryInline(Call* expr);
852 bool TryInlineBuiltinFunction(Call* expr, 852 bool TryInlineBuiltinFunction(Call* expr,
853 HValue* receiver, 853 HValue* receiver,
854 Handle<Map> receiver_map, 854 Handle<Map> receiver_map,
855 CheckType check_type); 855 CheckType check_type);
856 856
857 // If --trace-inlining, print a line of the inlining trace. Inlining 857 // If --trace-inlining, print a line of the inlining trace. Inlining
858 // succeeded if the reason string is NULL and failed if there is a 858 // succeeded if the reason string is NULL and failed if there is a
859 // non-NULL reason string. 859 // non-NULL reason string.
860 void TraceInline(Handle<JSFunction> target, const char* failure_reason); 860 void TraceInline(Handle<JSFunction> target,
861 Handle<JSFunction> caller,
862 const char* failure_reason);
861 863
862 void HandleGlobalVariableAssignment(Variable* var, 864 void HandleGlobalVariableAssignment(Variable* var,
863 HValue* value, 865 HValue* value,
864 int position, 866 int position,
865 int ast_id); 867 int ast_id);
866 868
867 void HandlePropertyAssignment(Assignment* expr); 869 void HandlePropertyAssignment(Assignment* expr);
868 void HandleCompoundAssignment(Assignment* expr); 870 void HandleCompoundAssignment(Assignment* expr);
869 void HandlePolymorphicStoreNamedField(Assignment* expr, 871 void HandlePolymorphicStoreNamedField(Assignment* expr,
870 HValue* object, 872 HValue* object,
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 const char* filename_; 1201 const char* filename_;
1200 HeapStringAllocator string_allocator_; 1202 HeapStringAllocator string_allocator_;
1201 StringStream trace_; 1203 StringStream trace_;
1202 int indent_; 1204 int indent_;
1203 }; 1205 };
1204 1206
1205 1207
1206 } } // namespace v8::internal 1208 } } // namespace v8::internal
1207 1209
1208 #endif // V8_HYDROGEN_H_ 1210 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698