| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |