OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
(...skipping 7434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7445 from_representation_(from), | 7445 from_representation_(from), |
7446 to_representation_(to), | 7446 to_representation_(to), |
7447 is_truncating_(to == kUnboxedUint32) { | 7447 is_truncating_(to == kUnboxedUint32) { |
7448 ASSERT(from != to); | 7448 ASSERT(from != to); |
7449 ASSERT((from == kUnboxedMint) || | 7449 ASSERT((from == kUnboxedMint) || |
7450 (from == kUnboxedUint32) || | 7450 (from == kUnboxedUint32) || |
7451 (from == kUnboxedInt32)); | 7451 (from == kUnboxedInt32)); |
7452 ASSERT((to == kUnboxedMint) || | 7452 ASSERT((to == kUnboxedMint) || |
7453 (to == kUnboxedUint32) || | 7453 (to == kUnboxedUint32) || |
7454 (to == kUnboxedInt32)); | 7454 (to == kUnboxedInt32)); |
7455 ASSERT((to != kUnboxedInt32) || (deopt_id != Isolate::kNoDeoptId)); | |
7456 SetInputAt(0, value); | 7455 SetInputAt(0, value); |
| 7456 ASSERT(!CanDeoptimize() || (deopt_id != Isolate::kNoDeoptId)); |
7457 } | 7457 } |
7458 | 7458 |
7459 Value* value() const { return inputs_[0]; } | 7459 Value* value() const { return inputs_[0]; } |
7460 | 7460 |
7461 Representation from() const { return from_representation_; } | 7461 Representation from() const { return from_representation_; } |
7462 Representation to() const { return to_representation_; } | 7462 Representation to() const { return to_representation_; } |
7463 bool is_truncating() const { return is_truncating_; } | 7463 bool is_truncating() const { return is_truncating_; } |
7464 | 7464 |
7465 void mark_truncating() { is_truncating_ = true; } | 7465 void mark_truncating() { is_truncating_ = true; } |
7466 | 7466 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7740 Isolate* isolate, bool opt) const { \ | 7740 Isolate* isolate, bool opt) const { \ |
7741 UNIMPLEMENTED(); \ | 7741 UNIMPLEMENTED(); \ |
7742 return NULL; \ | 7742 return NULL; \ |
7743 } \ | 7743 } \ |
7744 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 7744 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
7745 | 7745 |
7746 | 7746 |
7747 } // namespace dart | 7747 } // namespace dart |
7748 | 7748 |
7749 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7749 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
OLD | NEW |