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

Side by Side Diff: src/compiler/js-typed-lowering.h

Issue 1491223002: [turbofan] Desugar JSUnaryNot(x) to Select(x, false, true). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo in arm64. Created 5 years 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/compiler/js-operator.cc ('k') | src/compiler/js-typed-lowering.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_TYPED_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_
6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ 6 #define V8_COMPILER_JS_TYPED_LOWERING_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 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Reduction ReduceJSMultiply(Node* node); 53 Reduction ReduceJSMultiply(Node* node);
54 Reduction ReduceJSComparison(Node* node); 54 Reduction ReduceJSComparison(Node* node);
55 Reduction ReduceJSLoadNamed(Node* node); 55 Reduction ReduceJSLoadNamed(Node* node);
56 Reduction ReduceJSLoadProperty(Node* node); 56 Reduction ReduceJSLoadProperty(Node* node);
57 Reduction ReduceJSStoreProperty(Node* node); 57 Reduction ReduceJSStoreProperty(Node* node);
58 Reduction ReduceJSInstanceOf(Node* node); 58 Reduction ReduceJSInstanceOf(Node* node);
59 Reduction ReduceJSLoadContext(Node* node); 59 Reduction ReduceJSLoadContext(Node* node);
60 Reduction ReduceJSStoreContext(Node* node); 60 Reduction ReduceJSStoreContext(Node* node);
61 Reduction ReduceJSEqual(Node* node, bool invert); 61 Reduction ReduceJSEqual(Node* node, bool invert);
62 Reduction ReduceJSStrictEqual(Node* node, bool invert); 62 Reduction ReduceJSStrictEqual(Node* node, bool invert);
63 Reduction ReduceJSUnaryNot(Node* node);
64 Reduction ReduceJSToBoolean(Node* node); 63 Reduction ReduceJSToBoolean(Node* node);
65 Reduction ReduceJSToNumberInput(Node* input); 64 Reduction ReduceJSToNumberInput(Node* input);
66 Reduction ReduceJSToNumber(Node* node); 65 Reduction ReduceJSToNumber(Node* node);
67 Reduction ReduceJSToStringInput(Node* input); 66 Reduction ReduceJSToStringInput(Node* input);
68 Reduction ReduceJSToString(Node* node); 67 Reduction ReduceJSToString(Node* node);
69 Reduction ReduceJSToObject(Node* node); 68 Reduction ReduceJSToObject(Node* node);
70 Reduction ReduceJSConvertReceiver(Node* node); 69 Reduction ReduceJSConvertReceiver(Node* node);
71 Reduction ReduceJSCreate(Node* node); 70 Reduction ReduceJSCreate(Node* node);
72 Reduction ReduceJSCreateArguments(Node* node); 71 Reduction ReduceJSCreateArguments(Node* node);
73 Reduction ReduceJSCreateArray(Node* node); 72 Reduction ReduceJSCreateArray(Node* node);
74 Reduction ReduceJSCreateClosure(Node* node); 73 Reduction ReduceJSCreateClosure(Node* node);
75 Reduction ReduceJSCreateLiteralArray(Node* node); 74 Reduction ReduceJSCreateLiteralArray(Node* node);
76 Reduction ReduceJSCreateLiteralObject(Node* node); 75 Reduction ReduceJSCreateLiteralObject(Node* node);
77 Reduction ReduceJSCreateFunctionContext(Node* node); 76 Reduction ReduceJSCreateFunctionContext(Node* node);
78 Reduction ReduceJSCreateWithContext(Node* node); 77 Reduction ReduceJSCreateWithContext(Node* node);
79 Reduction ReduceJSCreateBlockContext(Node* node); 78 Reduction ReduceJSCreateBlockContext(Node* node);
80 Reduction ReduceJSCallFunction(Node* node); 79 Reduction ReduceJSCallFunction(Node* node);
81 Reduction ReduceJSForInDone(Node* node); 80 Reduction ReduceJSForInDone(Node* node);
82 Reduction ReduceJSForInNext(Node* node); 81 Reduction ReduceJSForInNext(Node* node);
83 Reduction ReduceJSForInPrepare(Node* node); 82 Reduction ReduceJSForInPrepare(Node* node);
84 Reduction ReduceJSForInStep(Node* node); 83 Reduction ReduceJSForInStep(Node* node);
84 Reduction ReduceSelect(Node* node);
85 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp); 85 Reduction ReduceNumberBinop(Node* node, const Operator* numberOp);
86 Reduction ReduceInt32Binop(Node* node, const Operator* intOp); 86 Reduction ReduceInt32Binop(Node* node, const Operator* intOp);
87 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness, 87 Reduction ReduceUI32Shift(Node* node, Signedness left_signedness,
88 const Operator* shift_op); 88 const Operator* shift_op);
89 Reduction ReduceNewArray(Node* node, Node* length, int capacity, 89 Reduction ReduceNewArray(Node* node, Node* length, int capacity,
90 Handle<AllocationSite> site); 90 Handle<AllocationSite> site);
91 91
92 Node* Word32Shl(Node* const lhs, int32_t const rhs); 92 Node* Word32Shl(Node* const lhs, int32_t const rhs);
93 Node* AllocateArguments(Node* effect, Node* control, Node* frame_state); 93 Node* AllocateArguments(Node* effect, Node* control, Node* frame_state);
94 Node* AllocateAliasedArguments(Node* effect, Node* control, Node* frame_state, 94 Node* AllocateAliasedArguments(Node* effect, Node* control, Node* frame_state,
(...skipping 15 matching lines...) Expand all
110 Flags flags() const { return flags_; } 110 Flags flags() const { return flags_; }
111 111
112 // Limits up to which context allocations are inlined. 112 // Limits up to which context allocations are inlined.
113 static const int kFunctionContextAllocationLimit = 16; 113 static const int kFunctionContextAllocationLimit = 16;
114 static const int kBlockContextAllocationLimit = 16; 114 static const int kBlockContextAllocationLimit = 16;
115 115
116 CompilationDependencies* dependencies_; 116 CompilationDependencies* dependencies_;
117 Flags flags_; 117 Flags flags_;
118 JSGraph* jsgraph_; 118 JSGraph* jsgraph_;
119 Type* shifted_int32_ranges_[4]; 119 Type* shifted_int32_ranges_[4];
120 Type* const true_type_;
121 Type* const false_type_;
120 Type* const the_hole_type_; 122 Type* const the_hole_type_;
121 TypeCache const& type_cache_; 123 TypeCache const& type_cache_;
122 }; 124 };
123 125
124 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) 126 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags)
125 127
126 } // namespace compiler 128 } // namespace compiler
127 } // namespace internal 129 } // namespace internal
128 } // namespace v8 130 } // namespace v8
129 131
130 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 132 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698