| OLD | NEW |
| 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 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2235 // Helpers for flow graph construction. | 2235 // Helpers for flow graph construction. |
| 2236 enum GlobalPropertyAccess { | 2236 enum GlobalPropertyAccess { |
| 2237 kUseCell, | 2237 kUseCell, |
| 2238 kUseGeneric | 2238 kUseGeneric |
| 2239 }; | 2239 }; |
| 2240 GlobalPropertyAccess LookupGlobalProperty(Variable* var, | 2240 GlobalPropertyAccess LookupGlobalProperty(Variable* var, |
| 2241 LookupResult* lookup, | 2241 LookupResult* lookup, |
| 2242 PropertyAccessType access_type); | 2242 PropertyAccessType access_type); |
| 2243 | 2243 |
| 2244 void EnsureArgumentsArePushedForAccess(); | 2244 void EnsureArgumentsArePushedForAccess(); |
| 2245 // Try to inline mathematical constants like Math.PI |
| 2246 bool TryMathConstant(Property* expr); |
| 2245 bool TryArgumentsAccess(Property* expr); | 2247 bool TryArgumentsAccess(Property* expr); |
| 2246 | 2248 |
| 2247 // Try to optimize fun.apply(receiver, arguments) pattern. | 2249 // Try to optimize fun.apply(receiver, arguments) pattern. |
| 2248 bool TryCallApply(Call* expr); | 2250 bool TryCallApply(Call* expr); |
| 2249 | 2251 |
| 2250 HValue* ImplicitReceiverFor(HValue* function, | 2252 HValue* ImplicitReceiverFor(HValue* function, |
| 2251 Handle<JSFunction> target); | 2253 Handle<JSFunction> target); |
| 2252 | 2254 |
| 2253 int InliningAstSize(Handle<JSFunction> target); | 2255 int InliningAstSize(Handle<JSFunction> target); |
| 2254 bool TryInline(Handle<JSFunction> target, | 2256 bool TryInline(Handle<JSFunction> target, |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2788 } | 2790 } |
| 2789 | 2791 |
| 2790 private: | 2792 private: |
| 2791 HGraphBuilder* builder_; | 2793 HGraphBuilder* builder_; |
| 2792 }; | 2794 }; |
| 2793 | 2795 |
| 2794 | 2796 |
| 2795 } } // namespace v8::internal | 2797 } } // namespace v8::internal |
| 2796 | 2798 |
| 2797 #endif // V8_HYDROGEN_H_ | 2799 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |