| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/flow_graph_builder.h" | 8 #include "vm/flow_graph_builder.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/os.h" | 10 #include "vm/os.h" |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 return AbstractType::null(); | 486 return AbstractType::null(); |
| 487 } | 487 } |
| 488 | 488 |
| 489 | 489 |
| 490 RawAbstractType* AllocateObjectWithBoundsCheckComp::StaticType() const { | 490 RawAbstractType* AllocateObjectWithBoundsCheckComp::StaticType() const { |
| 491 UNREACHABLE(); | 491 UNREACHABLE(); |
| 492 return AbstractType::null(); | 492 return AbstractType::null(); |
| 493 } | 493 } |
| 494 | 494 |
| 495 | 495 |
| 496 RawAbstractType* NativeLoadFieldComp::StaticType() const { | 496 RawAbstractType* LoadVMFieldComp::StaticType() const { |
| 497 ASSERT(!type().IsNull()); | 497 ASSERT(!type().IsNull()); |
| 498 return type().raw(); | 498 return type().raw(); |
| 499 } | 499 } |
| 500 | 500 |
| 501 | 501 |
| 502 RawAbstractType* NativeStoreFieldComp::StaticType() const { | 502 RawAbstractType* StoreVMFieldComp::StaticType() const { |
| 503 ASSERT(!type().IsNull()); | 503 ASSERT(!type().IsNull()); |
| 504 const AbstractType& assigned_value_type = | 504 const AbstractType& assigned_value_type = |
| 505 AbstractType::Handle(value()->StaticType()); | 505 AbstractType::Handle(value()->StaticType()); |
| 506 if (assigned_value_type.IsDynamicType()) { | 506 if (assigned_value_type.IsDynamicType()) { |
| 507 // Static type of assigned value is unknown, return static type of field. | 507 // Static type of assigned value is unknown, return static type of field. |
| 508 return type().raw(); | 508 return type().raw(); |
| 509 } | 509 } |
| 510 return assigned_value_type.raw(); | 510 return assigned_value_type.raw(); |
| 511 } | 511 } |
| 512 | 512 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 } | 547 } |
| 548 | 548 |
| 549 | 549 |
| 550 RawAbstractType* CatchEntryComp::StaticType() const { | 550 RawAbstractType* CatchEntryComp::StaticType() const { |
| 551 UNREACHABLE(); | 551 UNREACHABLE(); |
| 552 return AbstractType::null(); | 552 return AbstractType::null(); |
| 553 } | 553 } |
| 554 | 554 |
| 555 | 555 |
| 556 } // namespace dart | 556 } // namespace dart |
| OLD | NEW |