OLD | NEW |
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/hash_table.h" | 7 #include "vm/hash_table.h" |
8 #include "vm/isolate_reload.h" | 8 #include "vm/isolate_reload.h" |
9 #include "vm/log.h" | 9 #include "vm/log.h" |
10 #include "vm/resolver.h" | 10 #include "vm/resolver.h" |
11 #include "vm/symbols.h" | 11 #include "vm/symbols.h" |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 | 14 |
15 #ifndef PRODUCT | 15 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
16 | 16 |
17 DECLARE_FLAG(bool, trace_reload); | 17 DECLARE_FLAG(bool, trace_reload); |
18 DECLARE_FLAG(bool, trace_reload_verbose); | 18 DECLARE_FLAG(bool, trace_reload_verbose); |
19 DECLARE_FLAG(bool, two_args_smi_icd); | 19 DECLARE_FLAG(bool, two_args_smi_icd); |
20 | 20 |
21 class ObjectReloadUtils : public AllStatic { | 21 class ObjectReloadUtils : public AllStatic { |
22 static void DumpLibraryDictionary(const Library& lib) { | 22 static void DumpLibraryDictionary(const Library& lib) { |
23 DictionaryIterator it(lib); | 23 DictionaryIterator it(lib); |
24 Object& entry = Object::Handle(); | 24 Object& entry = Object::Handle(); |
25 String& name = String::Handle(); | 25 String& name = String::Handle(); |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 if (num_args == 2) { | 756 if (num_args == 2) { |
757 ClearWithSentinel(); | 757 ClearWithSentinel(); |
758 } else { | 758 } else { |
759 const Array& data_array = | 759 const Array& data_array = |
760 Array::Handle(zone, CachedEmptyICDataArray(num_args)); | 760 Array::Handle(zone, CachedEmptyICDataArray(num_args)); |
761 set_ic_data_array(data_array); | 761 set_ic_data_array(data_array); |
762 } | 762 } |
763 } | 763 } |
764 } | 764 } |
765 | 765 |
766 #endif // !PRODUCT | 766 #endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
767 | 767 |
768 } // namespace dart. | 768 } // namespace dart. |
OLD | NEW |