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

Side by Side Diff: src/compiler/js-builtin-reducer.h

Issue 2313073002: [builtins] Migrate Number predicates and make them optimizable. (Closed)
Patch Set: Created 4 years, 3 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 | « src/builtins/builtins-number.cc ('k') | src/compiler/js-builtin-reducer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_
6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ 6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
(...skipping 25 matching lines...) Expand all
36 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, 36 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags,
37 CompilationDependencies* dependencies); 37 CompilationDependencies* dependencies);
38 ~JSBuiltinReducer() final {} 38 ~JSBuiltinReducer() final {}
39 39
40 Reduction Reduce(Node* node) final; 40 Reduction Reduce(Node* node) final;
41 41
42 private: 42 private:
43 Reduction ReduceArrayPop(Node* node); 43 Reduction ReduceArrayPop(Node* node);
44 Reduction ReduceArrayPush(Node* node); 44 Reduction ReduceArrayPush(Node* node);
45 Reduction ReduceDateGetTime(Node* node); 45 Reduction ReduceDateGetTime(Node* node);
46 Reduction ReduceGlobalIsFinite(Node* node);
47 Reduction ReduceGlobalIsNaN(Node* node);
46 Reduction ReduceMathAbs(Node* node); 48 Reduction ReduceMathAbs(Node* node);
47 Reduction ReduceMathAcos(Node* node); 49 Reduction ReduceMathAcos(Node* node);
48 Reduction ReduceMathAcosh(Node* node); 50 Reduction ReduceMathAcosh(Node* node);
49 Reduction ReduceMathAsin(Node* node); 51 Reduction ReduceMathAsin(Node* node);
50 Reduction ReduceMathAsinh(Node* node); 52 Reduction ReduceMathAsinh(Node* node);
51 Reduction ReduceMathAtan(Node* node); 53 Reduction ReduceMathAtan(Node* node);
52 Reduction ReduceMathAtanh(Node* node); 54 Reduction ReduceMathAtanh(Node* node);
53 Reduction ReduceMathAtan2(Node* node); 55 Reduction ReduceMathAtan2(Node* node);
54 Reduction ReduceMathCbrt(Node* node); 56 Reduction ReduceMathCbrt(Node* node);
55 Reduction ReduceMathCeil(Node* node); 57 Reduction ReduceMathCeil(Node* node);
(...skipping 13 matching lines...) Expand all
69 Reduction ReduceMathMin(Node* node); 71 Reduction ReduceMathMin(Node* node);
70 Reduction ReduceMathPow(Node* node); 72 Reduction ReduceMathPow(Node* node);
71 Reduction ReduceMathRound(Node* node); 73 Reduction ReduceMathRound(Node* node);
72 Reduction ReduceMathSign(Node* node); 74 Reduction ReduceMathSign(Node* node);
73 Reduction ReduceMathSin(Node* node); 75 Reduction ReduceMathSin(Node* node);
74 Reduction ReduceMathSinh(Node* node); 76 Reduction ReduceMathSinh(Node* node);
75 Reduction ReduceMathSqrt(Node* node); 77 Reduction ReduceMathSqrt(Node* node);
76 Reduction ReduceMathTan(Node* node); 78 Reduction ReduceMathTan(Node* node);
77 Reduction ReduceMathTanh(Node* node); 79 Reduction ReduceMathTanh(Node* node);
78 Reduction ReduceMathTrunc(Node* node); 80 Reduction ReduceMathTrunc(Node* node);
81 Reduction ReduceNumberIsFinite(Node* node);
82 Reduction ReduceNumberIsInteger(Node* node);
83 Reduction ReduceNumberIsNaN(Node* node);
84 Reduction ReduceNumberIsSafeInteger(Node* node);
79 Reduction ReduceNumberParseInt(Node* node); 85 Reduction ReduceNumberParseInt(Node* node);
80 Reduction ReduceStringCharAt(Node* node); 86 Reduction ReduceStringCharAt(Node* node);
81 Reduction ReduceStringCharCodeAt(Node* node); 87 Reduction ReduceStringCharCodeAt(Node* node);
82 Reduction ReduceStringFromCharCode(Node* node); 88 Reduction ReduceStringFromCharCode(Node* node);
83 Reduction ReduceArrayBufferViewAccessor(Node* node, 89 Reduction ReduceArrayBufferViewAccessor(Node* node,
84 InstanceType instance_type, 90 InstanceType instance_type,
85 FieldAccess const& access); 91 FieldAccess const& access);
86 92
87 Node* ToNumber(Node* value); 93 Node* ToNumber(Node* value);
88 Node* ToUint32(Node* value); 94 Node* ToUint32(Node* value);
(...skipping 13 matching lines...) Expand all
102 TypeCache const& type_cache_; 108 TypeCache const& type_cache_;
103 }; 109 };
104 110
105 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) 111 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags)
106 112
107 } // namespace compiler 113 } // namespace compiler
108 } // namespace internal 114 } // namespace internal
109 } // namespace v8 115 } // namespace v8
110 116
111 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ 117 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-number.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698