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

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

Issue 1473593002: [turbofan] Properly recognize and optimize comparisons with the_hole. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 Flags flags() const { return flags_; } 111 Flags flags() const { return flags_; }
112 112
113 // Limits up to which context allocations are inlined. 113 // Limits up to which context allocations are inlined.
114 static const int kFunctionContextAllocationLimit = 16; 114 static const int kFunctionContextAllocationLimit = 16;
115 static const int kBlockContextAllocationLimit = 16; 115 static const int kBlockContextAllocationLimit = 16;
116 116
117 CompilationDependencies* dependencies_; 117 CompilationDependencies* dependencies_;
118 Flags flags_; 118 Flags flags_;
119 JSGraph* jsgraph_; 119 JSGraph* jsgraph_;
120 Type* shifted_int32_ranges_[4]; 120 Type* shifted_int32_ranges_[4];
121 Type* const the_hole_type_;
121 TypeCache const& type_cache_; 122 TypeCache const& type_cache_;
122 }; 123 };
123 124
124 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) 125 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags)
125 126
126 } // namespace compiler 127 } // namespace compiler
127 } // namespace internal 128 } // namespace internal
128 } // namespace v8 129 } // namespace v8
129 130
130 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 131 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698