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/typer.h" | 5 #include "src/compiler/typer.h" |
6 | 6 |
7 #include "src/base/flags.h" | 7 #include "src/base/flags.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 534 |
535 | 535 |
536 Bounds Typer::Visitor::TypeNumberConstant(Node* node) { | 536 Bounds Typer::Visitor::TypeNumberConstant(Node* node) { |
537 Factory* f = isolate()->factory(); | 537 Factory* f = isolate()->factory(); |
538 return Bounds(Type::Constant( | 538 return Bounds(Type::Constant( |
539 f->NewNumber(OpParameter<double>(node)), zone())); | 539 f->NewNumber(OpParameter<double>(node)), zone())); |
540 } | 540 } |
541 | 541 |
542 | 542 |
543 Bounds Typer::Visitor::TypeHeapConstant(Node* node) { | 543 Bounds Typer::Visitor::TypeHeapConstant(Node* node) { |
544 return Bounds(TypeConstant(OpParameter<Unique<HeapObject> >(node).handle())); | 544 return Bounds(TypeConstant(OpParameter<Handle<HeapObject>>(node))); |
545 } | 545 } |
546 | 546 |
547 | 547 |
548 Bounds Typer::Visitor::TypeExternalConstant(Node* node) { | 548 Bounds Typer::Visitor::TypeExternalConstant(Node* node) { |
549 return Bounds(Type::None(zone()), Type::Internal(zone())); | 549 return Bounds(Type::None(zone()), Type::Internal(zone())); |
550 } | 550 } |
551 | 551 |
552 | 552 |
553 Bounds Typer::Visitor::TypeSelect(Node* node) { | 553 Bounds Typer::Visitor::TypeSelect(Node* node) { |
554 return Bounds::Either(Operand(node, 1), Operand(node, 2), zone()); | 554 return Bounds::Either(Operand(node, 1), Operand(node, 2), zone()); |
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2292 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2292 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
2293 #undef TYPED_ARRAY_CASE | 2293 #undef TYPED_ARRAY_CASE |
2294 } | 2294 } |
2295 } | 2295 } |
2296 return Type::Constant(value, zone()); | 2296 return Type::Constant(value, zone()); |
2297 } | 2297 } |
2298 | 2298 |
2299 } // namespace compiler | 2299 } // namespace compiler |
2300 } // namespace internal | 2300 } // namespace internal |
2301 } // namespace v8 | 2301 } // namespace v8 |
OLD | NEW |