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

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: Deactivate accessor inlining by default. 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
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,
1044 int ast_id,
1045 int return_id);
1043 bool TryInlineBuiltinMethodCall(Call* expr, 1046 bool TryInlineBuiltinMethodCall(Call* expr,
1044 HValue* receiver, 1047 HValue* receiver,
1045 Handle<Map> receiver_map, 1048 Handle<Map> receiver_map,
1046 CheckType check_type); 1049 CheckType check_type);
1047 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra); 1050 bool TryInlineBuiltinFunctionCall(Call* expr, bool drop_extra);
1048 1051
1049 // If --trace-inlining, print a line of the inlining trace. Inlining 1052 // 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 1053 // succeeded if the reason string is NULL and failed if there is a
1051 // non-NULL reason string. 1054 // non-NULL reason string.
1052 void TraceInline(Handle<JSFunction> target, 1055 void TraceInline(Handle<JSFunction> target,
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 const char* filename_; 1469 const char* filename_;
1467 HeapStringAllocator string_allocator_; 1470 HeapStringAllocator string_allocator_;
1468 StringStream trace_; 1471 StringStream trace_;
1469 int indent_; 1472 int indent_;
1470 }; 1473 };
1471 1474
1472 1475
1473 } } // namespace v8::internal 1476 } } // namespace v8::internal
1474 1477
1475 #endif // V8_HYDROGEN_H_ 1478 #endif // V8_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698