| 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/base/flags.h" | 5 #include "src/base/flags.h" |
| 6 #include "src/bootstrapper.h" | 6 #include "src/bootstrapper.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.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 | 1777 |
| 1778 | 1778 |
| 1779 Bounds Typer::Visitor::TypeChangeBitToBool(Node* node) { | 1779 Bounds Typer::Visitor::TypeChangeBitToBool(Node* node) { |
| 1780 Bounds arg = Operand(node, 0); | 1780 Bounds arg = Operand(node, 0); |
| 1781 // TODO(neis): DCHECK(arg.upper->Is(Type::Boolean())); | 1781 // TODO(neis): DCHECK(arg.upper->Is(Type::Boolean())); |
| 1782 return Bounds(ChangeRepresentation(arg.lower, Type::TaggedPointer(), zone()), | 1782 return Bounds(ChangeRepresentation(arg.lower, Type::TaggedPointer(), zone()), |
| 1783 ChangeRepresentation(arg.upper, Type::TaggedPointer(), zone())); | 1783 ChangeRepresentation(arg.upper, Type::TaggedPointer(), zone())); |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 | 1786 |
| 1787 Bounds Typer::Visitor::TypeCheckMaps(Node* node) { return Bounds(); } |
| 1788 |
| 1789 |
| 1787 Bounds Typer::Visitor::TypeAllocate(Node* node) { | 1790 Bounds Typer::Visitor::TypeAllocate(Node* node) { |
| 1788 return Bounds(Type::TaggedPointer()); | 1791 return Bounds(Type::TaggedPointer()); |
| 1789 } | 1792 } |
| 1790 | 1793 |
| 1791 | 1794 |
| 1792 Bounds Typer::Visitor::TypeLoadField(Node* node) { | 1795 Bounds Typer::Visitor::TypeLoadField(Node* node) { |
| 1793 return Bounds(FieldAccessOf(node->op()).type); | 1796 return Bounds(FieldAccessOf(node->op()).type); |
| 1794 } | 1797 } |
| 1795 | 1798 |
| 1796 | 1799 |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2366 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 2369 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
| 2367 #undef TYPED_ARRAY_CASE | 2370 #undef TYPED_ARRAY_CASE |
| 2368 } | 2371 } |
| 2369 } | 2372 } |
| 2370 return Type::Constant(value, zone()); | 2373 return Type::Constant(value, zone()); |
| 2371 } | 2374 } |
| 2372 | 2375 |
| 2373 } // namespace compiler | 2376 } // namespace compiler |
| 2374 } // namespace internal | 2377 } // namespace internal |
| 2375 } // namespace v8 | 2378 } // namespace v8 |
| OLD | NEW |