| 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 RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define RUNTIME_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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // operation for the lattice. | 49 // operation for the lattice. |
| 50 class CompileType : public ZoneAllocated { | 50 class CompileType : public ZoneAllocated { |
| 51 public: | 51 public: |
| 52 static const bool kNullable = true; | 52 static const bool kNullable = true; |
| 53 static const bool kNonNullable = false; | 53 static const bool kNonNullable = false; |
| 54 | 54 |
| 55 CompileType(bool is_nullable, intptr_t cid, const AbstractType* type) | 55 CompileType(bool is_nullable, intptr_t cid, const AbstractType* type) |
| 56 : is_nullable_(is_nullable), cid_(cid), type_(type) {} | 56 : is_nullable_(is_nullable), cid_(cid), type_(type) {} |
| 57 | 57 |
| 58 CompileType(const CompileType& other) | 58 CompileType(const CompileType& other) |
| 59 : is_nullable_(other.is_nullable_), | 59 : ZoneAllocated(), |
| 60 is_nullable_(other.is_nullable_), |
| 60 cid_(other.cid_), | 61 cid_(other.cid_), |
| 61 type_(other.type_) {} | 62 type_(other.type_) {} |
| 62 | 63 |
| 63 CompileType& operator=(const CompileType& other) { | 64 CompileType& operator=(const CompileType& other) { |
| 64 is_nullable_ = other.is_nullable_; | 65 is_nullable_ = other.is_nullable_; |
| 65 cid_ = other.cid_; | 66 cid_ = other.cid_; |
| 66 type_ = other.type_; | 67 type_ = other.type_; |
| 67 return *this; | 68 return *this; |
| 68 } | 69 } |
| 69 | 70 |
| (...skipping 7955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8025 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ | 8026 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ |
| 8026 UNIMPLEMENTED(); \ | 8027 UNIMPLEMENTED(); \ |
| 8027 return NULL; \ | 8028 return NULL; \ |
| 8028 } \ | 8029 } \ |
| 8029 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } | 8030 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } |
| 8030 | 8031 |
| 8031 | 8032 |
| 8032 } // namespace dart | 8033 } // namespace dart |
| 8033 | 8034 |
| 8034 #endif // RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ | 8035 #endif // RUNTIME_VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |