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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
8 | 8 |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
(...skipping 5842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5853 // newly loaded code and trigger one of these breakpoints. | 5853 // newly loaded code and trigger one of these breakpoints. |
5854 if (FLAG_support_debugger) { | 5854 if (FLAG_support_debugger) { |
5855 I->debugger()->NotifyDoneLoading(); | 5855 I->debugger()->NotifyDoneLoading(); |
5856 } | 5856 } |
5857 | 5857 |
5858 #if !defined(PRODUCT) | 5858 #if !defined(PRODUCT) |
5859 if (FLAG_enable_mirrors) { | 5859 if (FLAG_enable_mirrors) { |
5860 // Notify mirrors that MirrorSystem.libraries needs to be recomputed. | 5860 // Notify mirrors that MirrorSystem.libraries needs to be recomputed. |
5861 const Library& libmirrors = Library::Handle(Z, Library::MirrorsLibrary()); | 5861 const Library& libmirrors = Library::Handle(Z, Library::MirrorsLibrary()); |
5862 const Field& dirty_bit = Field::Handle( | 5862 const Field& dirty_bit = Field::Handle( |
5863 Z, libmirrors.LookupLocalField(String::Handle(String::New("dirty")))); | 5863 Z, libmirrors.LookupLocalField(String::Handle(String::New("_dirty")))); |
5864 ASSERT(!dirty_bit.IsNull() && dirty_bit.is_static()); | 5864 ASSERT(!dirty_bit.IsNull() && dirty_bit.is_static()); |
5865 dirty_bit.SetStaticValue(Bool::True()); | 5865 dirty_bit.SetStaticValue(Bool::True()); |
5866 } | 5866 } |
5867 #endif | 5867 #endif |
5868 | 5868 |
5869 if (complete_futures) { | 5869 if (complete_futures) { |
5870 const Library& corelib = Library::Handle(Z, Library::CoreLibrary()); | 5870 const Library& corelib = Library::Handle(Z, Library::CoreLibrary()); |
5871 const String& function_name = | 5871 const String& function_name = |
5872 String::Handle(Z, String::New("_completeDeferredLoads")); | 5872 String::Handle(Z, String::New("_completeDeferredLoads")); |
5873 const Function& function = | 5873 const Function& function = |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6711 } | 6711 } |
6712 | 6712 |
6713 | 6713 |
6714 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6714 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
6715 #ifndef PRODUCT | 6715 #ifndef PRODUCT |
6716 Profiler::DumpStackTrace(context); | 6716 Profiler::DumpStackTrace(context); |
6717 #endif | 6717 #endif |
6718 } | 6718 } |
6719 | 6719 |
6720 } // namespace dart | 6720 } // namespace dart |
OLD | NEW |