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

Side by Side Diff: src/hydrogen.h

Issue 10828066: Inline simple getter calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review comments. Created 8 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/flag-definitions.h ('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 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 bool TryInline(CallKind call_kind, 1033 bool TryInline(CallKind call_kind,
1034 Handle<JSFunction> target, 1034 Handle<JSFunction> target,
1035 int arguments_count, 1035 int arguments_count,
1036 HValue* receiver, 1036 HValue* receiver,
1037 int ast_id, 1037 int ast_id,
1038 int return_id, 1038 int return_id,
1039 ReturnHandlingFlag return_handling); 1039 ReturnHandlingFlag return_handling);
1040 1040
1041 bool TryInlineCall(Call* expr, bool drop_extra = false); 1041 bool TryInlineCall(Call* expr, bool drop_extra = false);
1042 bool TryInlineConstruct(CallNew* expr, HValue* receiver); 1042 bool TryInlineConstruct(CallNew* expr, HValue* receiver);
1043 bool TryInlineGetter(Handle<JSFunction> getter, Property* prop);
1043 bool TryInlineBuiltinMethodCall(Call* expr, 1044 bool TryInlineBuiltinMethodCall(Call* expr,
1044 HValue* receiver, 1045 HValue* receiver,
1045 Handle<Map> receiver_map, 1046 Handle<Map> receiver_map,
1046 CheckType check_type); 1047 CheckType check_type);
1047 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra); 1048 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra);
1048 1049
1049 // If --trace-inlining, print a line of the inlining trace. Inlining 1050 // If --trace-inlining, print a line of the inlining trace. Inlining
1050 // succeeded if the reason string is NULL and failed if there is a 1051 // succeeded if the reason string is NULL and failed if there is a
1051 // non-NULL reason string. 1052 // non-NULL reason string.
1052 void TraceInline(Handle<JSFunction> target, 1053 void TraceInline(Handle<JSFunction> target,
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 const char* filename_; 1467 const char* filename_;
1467 HeapStringAllocator string_allocator_; 1468 HeapStringAllocator string_allocator_;
1468 StringStream trace_; 1469 StringStream trace_;
1469 int indent_; 1470 int indent_;
1470 }; 1471 };
1471 1472
1472 1473
1473 } } // namespace v8::internal 1474 } } // namespace v8::internal
1474 1475
1475 #endif // V8_HYDROGEN_H_ 1476 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698