| OLD | NEW |
| 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 #include "vm/precompiler.h" | 5 #include "vm/precompiler.h" |
| 6 | 6 |
| 7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
| 8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
| 9 #include "vm/longjump.h" | 9 #include "vm/longjump.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 491 |
| 492 | 492 |
| 493 void Precompiler::AddClass(const Class& cls) { | 493 void Precompiler::AddClass(const Class& cls) { |
| 494 if (cls.is_allocated()) return; | 494 if (cls.is_allocated()) return; |
| 495 | 495 |
| 496 class_count_++; | 496 class_count_++; |
| 497 cls.set_is_allocated(); | 497 cls.set_is_allocated(); |
| 498 changed_ = true; | 498 changed_ = true; |
| 499 | 499 |
| 500 if (FLAG_trace_precompiler) { | 500 if (FLAG_trace_precompiler) { |
| 501 OS::Print("Allocation %ld %s\n", class_count_, cls.ToCString()); | 501 OS::Print("Allocation %" Pd " %s\n", class_count_, cls.ToCString()); |
| 502 } | 502 } |
| 503 | 503 |
| 504 const Class& superclass = Class::Handle(cls.SuperClass()); | 504 const Class& superclass = Class::Handle(cls.SuperClass()); |
| 505 if (!superclass.IsNull()) { | 505 if (!superclass.IsNull()) { |
| 506 AddClass(superclass); | 506 AddClass(superclass); |
| 507 } | 507 } |
| 508 } | 508 } |
| 509 | 509 |
| 510 | 510 |
| 511 void Precompiler::CheckForNewDynamicFunctions() { | 511 void Precompiler::CheckForNewDynamicFunctions() { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 function = function.ImplicitClosureFunction(); | 585 function = function.ImplicitClosureFunction(); |
| 586 AddFunction(function); | 586 AddFunction(function); |
| 587 } | 587 } |
| 588 } | 588 } |
| 589 } | 589 } |
| 590 } | 590 } |
| 591 } | 591 } |
| 592 } | 592 } |
| 593 | 593 |
| 594 } // namespace dart | 594 } // namespace dart |
| OLD | NEW |