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 #include "vm/class_finalizer.h" | 5 #include "vm/class_finalizer.h" |
6 | 6 |
7 #include "vm/flags.h" | 7 #include "vm/flags.h" |
8 #include "vm/hash_table.h" | 8 #include "vm/hash_table.h" |
9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
10 #include "vm/isolate.h" | 10 #include "vm/isolate.h" |
(...skipping 3447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3458 va_list args; | 3458 va_list args; |
3459 va_start(args, format); | 3459 va_start(args, format); |
3460 const Script& script = Script::Handle(cls.script()); | 3460 const Script& script = Script::Handle(cls.script()); |
3461 Report::MessageV(Report::kError, script, token_pos, Report::AtLocation, | 3461 Report::MessageV(Report::kError, script, token_pos, Report::AtLocation, |
3462 format, args); | 3462 format, args); |
3463 va_end(args); | 3463 va_end(args); |
3464 UNREACHABLE(); | 3464 UNREACHABLE(); |
3465 } | 3465 } |
3466 | 3466 |
3467 void ClassFinalizer::VerifyImplicitFieldOffsets() { | 3467 void ClassFinalizer::VerifyImplicitFieldOffsets() { |
3468 return; | |
rmacnak
2017/08/23 01:16:50
if (isolate->flags->obfuscate) return;
Vyacheslav Egorov (Google)
2017/08/23 15:54:52
Done.
| |
3468 #ifdef DEBUG | 3469 #ifdef DEBUG |
3469 Thread* thread = Thread::Current(); | 3470 Thread* thread = Thread::Current(); |
3470 Isolate* isolate = thread->isolate(); | 3471 Isolate* isolate = thread->isolate(); |
3471 Zone* zone = thread->zone(); | 3472 Zone* zone = thread->zone(); |
3472 const ClassTable& class_table = *(isolate->class_table()); | 3473 const ClassTable& class_table = *(isolate->class_table()); |
3473 Class& cls = Class::Handle(zone); | 3474 Class& cls = Class::Handle(zone); |
3474 Array& fields_array = Array::Handle(zone); | 3475 Array& fields_array = Array::Handle(zone); |
3475 Field& field = Field::Handle(zone); | 3476 Field& field = Field::Handle(zone); |
3476 String& name = String::Handle(zone); | 3477 String& name = String::Handle(zone); |
3477 String& expected_name = String::Handle(zone); | 3478 String& expected_name = String::Handle(zone); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3792 ProgramVisitor::VisitFunctions(&function_visitor); | 3793 ProgramVisitor::VisitFunctions(&function_visitor); |
3793 | 3794 |
3794 class ClearCodeClassVisitor : public ClassVisitor { | 3795 class ClearCodeClassVisitor : public ClassVisitor { |
3795 void Visit(const Class& cls) { cls.DisableAllocationStub(); } | 3796 void Visit(const Class& cls) { cls.DisableAllocationStub(); } |
3796 }; | 3797 }; |
3797 ClearCodeClassVisitor class_visitor; | 3798 ClearCodeClassVisitor class_visitor; |
3798 ProgramVisitor::VisitClasses(&class_visitor); | 3799 ProgramVisitor::VisitClasses(&class_visitor); |
3799 } | 3800 } |
3800 | 3801 |
3801 } // namespace dart | 3802 } // namespace dart |
OLD | NEW |