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

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

Issue 2281263002: AOT: Reassign class ids so class hierarchies have contiguous ranges. (Closed)
Patch Set: review Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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_PRECOMPILER_H_ 5 #ifndef VM_PRECOMPILER_H_
6 #define VM_PRECOMPILER_H_ 6 #define VM_PRECOMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/hash_map.h" 9 #include "vm/hash_map.h"
10 #include "vm/hash_table.h" 10 #include "vm/hash_table.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 virtual ~Visitor() {} 328 virtual ~Visitor() {}
329 virtual void Visit(const T& obj) = 0; 329 virtual void Visit(const T& obj) = 0;
330 }; 330 };
331 typedef Visitor<Function> FunctionVisitor; 331 typedef Visitor<Function> FunctionVisitor;
332 typedef Visitor<Class> ClassVisitor; 332 typedef Visitor<Class> ClassVisitor;
333 333
334 void VisitFunctions(FunctionVisitor* visitor); 334 void VisitFunctions(FunctionVisitor* visitor);
335 void VisitClasses(ClassVisitor* visitor); 335 void VisitClasses(ClassVisitor* visitor);
336 336
337 void FinalizeAllClasses(); 337 void FinalizeAllClasses();
338 void SortClasses();
339 void RemapClassIds(intptr_t* old_to_new_cid);
338 340
339 Thread* thread() const { return thread_; } 341 Thread* thread() const { return thread_; }
340 Zone* zone() const { return zone_; } 342 Zone* zone() const { return zone_; }
341 Isolate* isolate() const { return isolate_; } 343 Isolate* isolate() const { return isolate_; }
342 344
343 Thread* thread_; 345 Thread* thread_;
344 Zone* zone_; 346 Zone* zone_;
345 Isolate* isolate_; 347 Isolate* isolate_;
346 348
347 const bool reset_fields_; 349 const bool reset_fields_;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 return function.raw(); 399 return function.raw();
398 } 400 }
399 }; 401 };
400 402
401 typedef UnorderedHashSet<FunctionsTraits> UniqueFunctionsSet; 403 typedef UnorderedHashSet<FunctionsTraits> UniqueFunctionsSet;
402 404
403 405
404 } // namespace dart 406 } // namespace dart
405 407
406 #endif // VM_PRECOMPILER_H_ 408 #endif // VM_PRECOMPILER_H_
OLDNEW
« runtime/vm/isolate.cc ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698