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

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

Issue 2511223003: [turbofan] Properly optimize instanceof (even in the presence of @@hasInstance). (Closed)
Patch Set: Created 4 years, 1 month 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
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/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 Reduction Reduce(Node* node) final; 45 Reduction Reduce(Node* node) final;
46 46
47 private: 47 private:
48 friend class JSBinopReduction; 48 friend class JSBinopReduction;
49 49
50 Reduction ReduceJSAdd(Node* node); 50 Reduction ReduceJSAdd(Node* node);
51 Reduction ReduceJSComparison(Node* node); 51 Reduction ReduceJSComparison(Node* node);
52 Reduction ReduceJSLoadNamed(Node* node); 52 Reduction ReduceJSLoadNamed(Node* node);
53 Reduction ReduceJSLoadProperty(Node* node); 53 Reduction ReduceJSLoadProperty(Node* node);
54 Reduction ReduceJSStoreProperty(Node* node); 54 Reduction ReduceJSStoreProperty(Node* node);
55 Reduction ReduceJSInstanceOf(Node* node); 55 Reduction ReduceJSOrdinaryHasInstance(Node* node);
56 Reduction ReduceJSLoadContext(Node* node); 56 Reduction ReduceJSLoadContext(Node* node);
57 Reduction ReduceJSStoreContext(Node* node); 57 Reduction ReduceJSStoreContext(Node* node);
58 Reduction ReduceJSLoadModule(Node* node); 58 Reduction ReduceJSLoadModule(Node* node);
59 Reduction ReduceJSStoreModule(Node* node); 59 Reduction ReduceJSStoreModule(Node* node);
60 Reduction ReduceJSEqualTypeOf(Node* node, bool invert); 60 Reduction ReduceJSEqualTypeOf(Node* node, bool invert);
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 ReduceJSToBoolean(Node* node); 63 Reduction ReduceJSToBoolean(Node* node);
64 Reduction ReduceJSToInteger(Node* node); 64 Reduction ReduceJSToInteger(Node* node);
65 Reduction ReduceJSToLength(Node* node); 65 Reduction ReduceJSToLength(Node* node);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 TypeCache const& type_cache_; 100 TypeCache const& type_cache_;
101 }; 101 };
102 102
103 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) 103 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags)
104 104
105 } // namespace compiler 105 } // namespace compiler
106 } // namespace internal 106 } // namespace internal
107 } // namespace v8 107 } // namespace v8
108 108
109 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 109 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698