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

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

Issue 792463003: [turbofan] Turn JSToBoolean and JSUnaryNot into pure operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 13 matching lines...) Expand all
24 Reduction Reduce(Node* node) OVERRIDE; 24 Reduction Reduce(Node* node) OVERRIDE;
25 25
26 JSGraph* jsgraph() { return jsgraph_; } 26 JSGraph* jsgraph() { return jsgraph_; }
27 Graph* graph() { return jsgraph_->graph(); } 27 Graph* graph() { return jsgraph_->graph(); }
28 Zone* zone() { return jsgraph_->zone(); } 28 Zone* zone() { return jsgraph_->zone(); }
29 29
30 private: 30 private:
31 friend class JSBinopReduction; 31 friend class JSBinopReduction;
32 32
33 Reduction ReplaceEagerly(Node* old, Node* node); 33 Reduction ReplaceEagerly(Node* old, Node* node);
34 Reduction ReplaceWith(Node* node) { return Reducer::Replace(node); }
Benedikt Meurer 2014/12/09 06:47:27 This is drive-by-cleanup.
35 Reduction ReduceJSAdd(Node* node); 34 Reduction ReduceJSAdd(Node* node);
36 Reduction ReduceJSBitwiseOr(Node* node); 35 Reduction ReduceJSBitwiseOr(Node* node);
37 Reduction ReduceJSMultiply(Node* node); 36 Reduction ReduceJSMultiply(Node* node);
38 Reduction ReduceJSComparison(Node* node); 37 Reduction ReduceJSComparison(Node* node);
39 Reduction ReduceJSLoadProperty(Node* node); 38 Reduction ReduceJSLoadProperty(Node* node);
40 Reduction ReduceJSStoreProperty(Node* node); 39 Reduction ReduceJSStoreProperty(Node* node);
41 Reduction ReduceJSLoadContext(Node* node); 40 Reduction ReduceJSLoadContext(Node* node);
42 Reduction ReduceJSStoreContext(Node* node); 41 Reduction ReduceJSStoreContext(Node* node);
43 Reduction ReduceJSEqual(Node* node, bool invert); 42 Reduction ReduceJSEqual(Node* node, bool invert);
44 Reduction ReduceJSStrictEqual(Node* node, bool invert); 43 Reduction ReduceJSStrictEqual(Node* node, bool invert);
(...skipping 21 matching lines...) Expand all
66 Type* one_range_; 65 Type* one_range_;
67 Type* zero_thirtyone_range_; 66 Type* zero_thirtyone_range_;
68 Type* shifted_int32_ranges_[4]; 67 Type* shifted_int32_ranges_[4];
69 }; 68 };
70 69
71 } // namespace compiler 70 } // namespace compiler
72 } // namespace internal 71 } // namespace internal
73 } // namespace v8 72 } // namespace v8
74 73
75 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 74 #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