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

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 2901093002: VM: Fix snapshoting slow-down caused by 99c6a18a1bc2a4f13d8dd027a597fdca0f2d6e0c. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « runtime/include/dart_tools_api.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6096 matching lines...) Expand 10 before | Expand all | Expand 10 after
6107 return Api::Success(); 6107 return Api::Success();
6108 } 6108 }
6109 6109
6110 6110
6111 DART_EXPORT Dart_Handle 6111 DART_EXPORT Dart_Handle
6112 Dart_SetFileModifiedCallback(Dart_FileModifiedCallback file_mod_callback) { 6112 Dart_SetFileModifiedCallback(Dart_FileModifiedCallback file_mod_callback) {
6113 return Api::Success(); 6113 return Api::Success();
6114 } 6114 }
6115 6115
6116 6116
6117 DART_EXPORT bool Dart_IsReloading() {
6118 return true;
siva 2017/05/23 18:48:37 Should this be false as there is no reloading in P
Vyacheslav Egorov (Google) 2017/05/23 20:00:48 Yep, this was a typo. I fixed it in the local che
6119 }
6120
6121
6117 DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask) { 6122 DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask) {
6118 return; 6123 return;
6119 } 6124 }
6120 6125
6121 6126
6122 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( 6127 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks(
6123 Dart_EmbedderTimelineStartRecording start_recording, 6128 Dart_EmbedderTimelineStartRecording start_recording,
6124 Dart_EmbedderTimelineStopRecording stop_recording) { 6129 Dart_EmbedderTimelineStopRecording stop_recording) {
6125 return; 6130 return;
6126 } 6131 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
6242 return Api::NewError( 6247 return Api::NewError(
6243 "%s expects 'file_modified_callback' to be set before it is cleared.", 6248 "%s expects 'file_modified_callback' to be set before it is cleared.",
6244 CURRENT_FUNC); 6249 CURRENT_FUNC);
6245 } 6250 }
6246 } 6251 }
6247 IsolateReloadContext::SetFileModifiedCallback(file_modified_callback); 6252 IsolateReloadContext::SetFileModifiedCallback(file_modified_callback);
6248 return Api::Success(); 6253 return Api::Success();
6249 } 6254 }
6250 6255
6251 6256
6257 DART_EXPORT bool Dart_IsReloading() {
6258 Thread* thread = Thread::Current();
6259 Isolate* isolate = thread->isolate();
6260 CHECK_ISOLATE(isolate);
6261 return isolate->IsReloading();
6262 }
6263
6264
6252 DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask) { 6265 DART_EXPORT void Dart_GlobalTimelineSetRecordedStreams(int64_t stream_mask) {
6253 if (!FLAG_support_timeline) { 6266 if (!FLAG_support_timeline) {
6254 return; 6267 return;
6255 } 6268 }
6256 const bool api_enabled = (stream_mask & DART_TIMELINE_STREAM_API) != 0; 6269 const bool api_enabled = (stream_mask & DART_TIMELINE_STREAM_API) != 0;
6257 const bool compiler_enabled = 6270 const bool compiler_enabled =
6258 (stream_mask & DART_TIMELINE_STREAM_COMPILER) != 0; 6271 (stream_mask & DART_TIMELINE_STREAM_COMPILER) != 0;
6259 const bool dart_enabled = (stream_mask & DART_TIMELINE_STREAM_DART) != 0; 6272 const bool dart_enabled = (stream_mask & DART_TIMELINE_STREAM_DART) != 0;
6260 const bool debugger_enabled = 6273 const bool debugger_enabled =
6261 (stream_mask & DART_TIMELINE_STREAM_DEBUGGER) != 0; 6274 (stream_mask & DART_TIMELINE_STREAM_DEBUGGER) != 0;
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
6859 } 6872 }
6860 6873
6861 6874
6862 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6875 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6863 #ifndef PRODUCT 6876 #ifndef PRODUCT
6864 Profiler::DumpStackTrace(context); 6877 Profiler::DumpStackTrace(context);
6865 #endif 6878 #endif
6866 } 6879 }
6867 6880
6868 } // namespace dart 6881 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_tools_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698