Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 2738733002: VM: Fix build on GCC which requires explicit initialization of the base class (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698