| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 // Helpers for flow graph construction. | 837 // Helpers for flow graph construction. |
| 838 enum GlobalPropertyAccess { | 838 enum GlobalPropertyAccess { |
| 839 kUseCell, | 839 kUseCell, |
| 840 kUseGeneric | 840 kUseGeneric |
| 841 }; | 841 }; |
| 842 GlobalPropertyAccess LookupGlobalProperty(Variable* var, | 842 GlobalPropertyAccess LookupGlobalProperty(Variable* var, |
| 843 LookupResult* lookup, | 843 LookupResult* lookup, |
| 844 bool is_store); | 844 bool is_store); |
| 845 | 845 |
| 846 bool TryArgumentsAccess(Property* expr); | 846 bool TryArgumentsAccess(Property* expr); |
| 847 |
| 848 // Try to optimize fun.apply(receiver, arguments) pattern. |
| 847 bool TryCallApply(Call* expr); | 849 bool TryCallApply(Call* expr); |
| 850 |
| 848 bool TryInline(Call* expr); | 851 bool TryInline(Call* expr); |
| 849 bool TryInlineBuiltinFunction(Call* expr, | 852 bool TryInlineBuiltinFunction(Call* expr, |
| 850 HValue* receiver, | 853 HValue* receiver, |
| 851 Handle<Map> receiver_map, | 854 Handle<Map> receiver_map, |
| 852 CheckType check_type); | 855 CheckType check_type); |
| 853 | 856 |
| 854 // If --trace-inlining, print a line of the inlining trace. Inlining | 857 // If --trace-inlining, print a line of the inlining trace. Inlining |
| 855 // 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 |
| 856 // non-NULL reason string. | 859 // non-NULL reason string. |
| 857 void TraceInline(Handle<JSFunction> target, | 860 void TraceInline(Handle<JSFunction> target, |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 const char* filename_; | 1203 const char* filename_; |
| 1201 HeapStringAllocator string_allocator_; | 1204 HeapStringAllocator string_allocator_; |
| 1202 StringStream trace_; | 1205 StringStream trace_; |
| 1203 int indent_; | 1206 int indent_; |
| 1204 }; | 1207 }; |
| 1205 | 1208 |
| 1206 | 1209 |
| 1207 } } // namespace v8::internal | 1210 } } // namespace v8::internal |
| 1208 | 1211 |
| 1209 #endif // V8_HYDROGEN_H_ | 1212 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |