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

Side by Side Diff: src/hydrogen.h

Issue 198533007: Inline mathematical constants (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | 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 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698