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

Side by Side Diff: src/compiler/representation-change.h

Issue 2295883004: [turbofan] Base more write barrier decisions on machine representation. (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/compiler/js-native-context-specialization.cc ('k') | src/compiler/simplified-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_REPRESENTATION_CHANGE_H_ 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_
7 7
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 static UseInfo TruncatingFloat64() { 133 static UseInfo TruncatingFloat64() {
134 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64()); 134 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64());
135 } 135 }
136 static UseInfo PointerInt() { 136 static UseInfo PointerInt() {
137 return kPointerSize == 4 ? TruncatingWord32() : TruncatingWord64(); 137 return kPointerSize == 4 ? TruncatingWord32() : TruncatingWord64();
138 } 138 }
139 static UseInfo AnyTagged() { 139 static UseInfo AnyTagged() {
140 return UseInfo(MachineRepresentation::kTagged, Truncation::Any()); 140 return UseInfo(MachineRepresentation::kTagged, Truncation::Any());
141 } 141 }
142 static UseInfo TaggedSigned() {
143 return UseInfo(MachineRepresentation::kTaggedSigned, Truncation::Any());
144 }
145 static UseInfo TaggedPointer() {
146 return UseInfo(MachineRepresentation::kTaggedPointer, Truncation::Any());
147 }
142 148
143 // Possibly deoptimizing conversions. 149 // Possibly deoptimizing conversions.
144 static UseInfo CheckedSignedSmallAsWord32() { 150 static UseInfo CheckedSignedSmallAsWord32() {
145 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), 151 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(),
146 TypeCheckKind::kSignedSmall); 152 TypeCheckKind::kSignedSmall);
147 } 153 }
148 static UseInfo CheckedSigned32AsWord32() { 154 static UseInfo CheckedSigned32AsWord32() {
149 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), 155 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(),
150 TypeCheckKind::kSigned32); 156 TypeCheckKind::kSigned32);
151 } 157 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 Factory* factory() const { return isolate()->factory(); } 276 Factory* factory() const { return isolate()->factory(); }
271 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } 277 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); }
272 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 278 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
273 }; 279 };
274 280
275 } // namespace compiler 281 } // namespace compiler
276 } // namespace internal 282 } // namespace internal
277 } // namespace v8 283 } // namespace v8
278 284
279 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ 285 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698