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

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

Issue 2951213002: Remove API_TIMELINE_DURATION from Dart_ReadKernelBinary. (Closed)
Patch Set: Explain why Created 3 years, 6 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 | « no previous file | 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 "lib/stacktrace.h" 9 #include "lib/stacktrace.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 5377 matching lines...) Expand 10 before | Expand all | Expand 10 after
5388 #endif // !defined(PRODUCT) 5388 #endif // !defined(PRODUCT)
5389 library ^= tmp.raw(); 5389 library ^= tmp.raw();
5390 library.set_debuggable(true); 5390 library.set_debuggable(true);
5391 I->object_store()->set_root_library(library); 5391 I->object_store()->set_root_library(library);
5392 return Api::NewHandle(T, library.raw()); 5392 return Api::NewHandle(T, library.raw());
5393 } 5393 }
5394 5394
5395 5395
5396 DART_EXPORT void* Dart_ReadKernelBinary(const uint8_t* buffer, 5396 DART_EXPORT void* Dart_ReadKernelBinary(const uint8_t* buffer,
5397 intptr_t buffer_len) { 5397 intptr_t buffer_len) {
5398 API_TIMELINE_DURATION;
5399
5400 #if defined(DART_PRECOMPILED_RUNTIME) 5398 #if defined(DART_PRECOMPILED_RUNTIME)
5401 UNREACHABLE(); 5399 UNREACHABLE();
5402 return NULL; 5400 return NULL;
5403 #else 5401 #else
5404 kernel::Program* program = 5402 kernel::Program* program =
5405 ReadPrecompiledKernelFromBuffer(buffer, buffer_len); 5403 ReadPrecompiledKernelFromBuffer(buffer, buffer_len);
5406 return program; 5404 return program;
5407 #endif 5405 #endif
5408 } 5406 }
5409 5407
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after
6966 } 6964 }
6967 6965
6968 6966
6969 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6967 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6970 #ifndef PRODUCT 6968 #ifndef PRODUCT
6971 Profiler::DumpStackTrace(context); 6969 Profiler::DumpStackTrace(context);
6972 #endif 6970 #endif
6973 } 6971 }
6974 6972
6975 } // namespace dart 6973 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698