| 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/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
| 6 #include "src/compiler/graph-inl.h" | 6 #include "src/compiler/graph-inl.h" |
| 7 #include "src/compiler/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
| 8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
| 9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
| 10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 | 619 |
| 620 | 620 |
| 621 Bounds Typer::Visitor::TypeNumberConstant(Node* node) { | 621 Bounds Typer::Visitor::TypeNumberConstant(Node* node) { |
| 622 Factory* f = isolate()->factory(); | 622 Factory* f = isolate()->factory(); |
| 623 return Bounds(Type::Constant( | 623 return Bounds(Type::Constant( |
| 624 f->NewNumber(OpParameter<double>(node)), zone())); | 624 f->NewNumber(OpParameter<double>(node)), zone())); |
| 625 } | 625 } |
| 626 | 626 |
| 627 | 627 |
| 628 Bounds Typer::Visitor::TypeHeapConstant(Node* node) { | 628 Bounds Typer::Visitor::TypeHeapConstant(Node* node) { |
| 629 return Bounds(TypeConstant(OpParameter<Unique<Object> >(node).handle())); | 629 return Bounds(TypeConstant(OpParameter<Unique<HeapObject> >(node).handle())); |
| 630 } | 630 } |
| 631 | 631 |
| 632 | 632 |
| 633 Bounds Typer::Visitor::TypeExternalConstant(Node* node) { | 633 Bounds Typer::Visitor::TypeExternalConstant(Node* node) { |
| 634 return Bounds(Type::None(zone()), Type::Internal(zone())); | 634 return Bounds(Type::None(zone()), Type::Internal(zone())); |
| 635 } | 635 } |
| 636 | 636 |
| 637 | 637 |
| 638 Bounds Typer::Visitor::TypeSelect(Node* node) { | 638 Bounds Typer::Visitor::TypeSelect(Node* node) { |
| 639 return Bounds::Either(Operand(node, 1), Operand(node, 2), zone()); | 639 return Bounds::Either(Operand(node, 1), Operand(node, 2), zone()); |
| (...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2092 // TODO(rossberg): Do we want some ClampedArray type to express this? | 2092 // TODO(rossberg): Do we want some ClampedArray type to express this? |
| 2093 break; | 2093 break; |
| 2094 } | 2094 } |
| 2095 } | 2095 } |
| 2096 return Type::Constant(value, zone()); | 2096 return Type::Constant(value, zone()); |
| 2097 } | 2097 } |
| 2098 | 2098 |
| 2099 } // namespace compiler | 2099 } // namespace compiler |
| 2100 } // namespace internal | 2100 } // namespace internal |
| 2101 } // namespace v8 | 2101 } // namespace v8 |
| OLD | NEW |