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

Side by Side Diff: runtime/vm/object_reload.cc

Issue 1965493004: Canonicalize generic types in an isolate specific hash table (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address-merge-conflicts Created 4 years, 7 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 | « runtime/vm/object.cc ('k') | runtime/vm/object_service.cc » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "vm/isolate_reload.h" 7 #include "vm/isolate_reload.h"
8 #include "vm/log.h" 8 #include "vm/log.h"
9 #include "vm/resolver.h" 9 #include "vm/resolver.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 if (old_constants.IsNull() || old_constants.Length() == 0) { 145 if (old_constants.IsNull() || old_constants.Length() == 0) {
146 return; 146 return;
147 } 147 }
148 TIR_Print("Copied %" Pd " canonical constants for class `%s`\n", 148 TIR_Print("Copied %" Pd " canonical constants for class `%s`\n",
149 old_constants.Length(), 149 old_constants.Length(),
150 ToCString()); 150 ToCString());
151 set_constants(old_constants); 151 set_constants(old_constants);
152 } 152 }
153 153
154 154
155 void Class::CopyCanonicalTypes(const Class& old_cls) const { 155 void Class::CopyCanonicalType(const Class& old_cls) const {
156 const Object& old_canonical_types = Object::Handle(old_cls.canonical_types()); 156 const Type& old_canonical_type = Type::Handle(old_cls.canonical_type());
157 if (old_canonical_types.IsNull()) { 157 if (old_canonical_type.IsNull()) {
158 return; 158 return;
159 } 159 }
160 set_canonical_types(old_canonical_types); 160 set_canonical_type(old_canonical_type);
161 } 161 }
162 162
163 163
164 static intptr_t IndexOfEnum(const Array& enum_names, const String& name) { 164 static intptr_t IndexOfEnum(const Array& enum_names, const String& name) {
165 ASSERT(!enum_names.IsNull()); 165 ASSERT(!enum_names.IsNull());
166 ASSERT(!name.IsNull()); 166 ASSERT(!name.IsNull());
167 String& enum_name = String::Handle(); 167 String& enum_name = String::Handle();
168 for (intptr_t i = 0; i < enum_names.Length(); i++) { 168 for (intptr_t i = 0; i < enum_names.Length(); i++) {
169 enum_name = String::RawCast(enum_names.At(i)); 169 enum_name = String::RawCast(enum_names.At(i));
170 ASSERT(!enum_name.IsNull()); 170 ASSERT(!enum_name.IsNull());
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 539 }
540 ClearAndSetStaticTarget(new_target); 540 ClearAndSetStaticTarget(new_target);
541 } else { 541 } else {
542 ClearWithSentinel(); 542 ClearWithSentinel();
543 } 543 }
544 } 544 }
545 545
546 #endif // !PRODUCT 546 #endif // !PRODUCT
547 547
548 } // namespace dart. 548 } // namespace dart.
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698