OLD | NEW |
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 #include "src/compiler/graph-inl.h" | 5 #include "src/compiler/graph-inl.h" |
6 #include "src/compiler/js-operator.h" | 6 #include "src/compiler/js-operator.h" |
7 #include "src/compiler/node.h" | 7 #include "src/compiler/node.h" |
8 #include "src/compiler/node-properties-inl.h" | 8 #include "src/compiler/node-properties-inl.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 #include "src/compiler/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 return Bounds(); | 296 return Bounds(); |
297 } | 297 } |
298 | 298 |
299 | 299 |
300 Bounds Typer::Visitor::TypeFinish(Node* node) { | 300 Bounds Typer::Visitor::TypeFinish(Node* node) { |
301 return OperandType(node, 0); | 301 return OperandType(node, 0); |
302 } | 302 } |
303 | 303 |
304 | 304 |
305 Bounds Typer::Visitor::TypeFrameState(Node* node) { | 305 Bounds Typer::Visitor::TypeFrameState(Node* node) { |
306 UNREACHABLE(); | 306 // TODO(rossberg): Ideally FrameState wouldn't have a value output. |
307 return Bounds(); | 307 return Bounds(Type::Internal(zone())); |
308 } | 308 } |
309 | 309 |
310 | 310 |
311 Bounds Typer::Visitor::TypeStateValues(Node* node) { | 311 Bounds Typer::Visitor::TypeStateValues(Node* node) { |
312 UNREACHABLE(); | 312 return Bounds(Type::Internal(zone())); |
313 return Bounds(); | |
314 } | 313 } |
315 | 314 |
316 | 315 |
317 Bounds Typer::Visitor::TypeCall(Node* node) { | 316 Bounds Typer::Visitor::TypeCall(Node* node) { |
318 return Bounds::Unbounded(zone()); | 317 return Bounds::Unbounded(zone()); |
319 } | 318 } |
320 | 319 |
321 | 320 |
322 Bounds Typer::Visitor::TypeProjection(Node* node) { | 321 Bounds Typer::Visitor::TypeProjection(Node* node) { |
323 // TODO(titzer): use the output type of the input to determine the bounds. | 322 // TODO(titzer): use the output type of the input to determine the bounds. |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 } | 876 } |
878 | 877 |
879 | 878 |
880 void Typer::DecorateGraph(Graph* graph) { | 879 void Typer::DecorateGraph(Graph* graph) { |
881 graph->AddDecorator(new (zone()) TyperDecorator(this)); | 880 graph->AddDecorator(new (zone()) TyperDecorator(this)); |
882 } | 881 } |
883 | 882 |
884 } | 883 } |
885 } | 884 } |
886 } // namespace v8::internal::compiler | 885 } // namespace v8::internal::compiler |
OLD | NEW |