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

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

Issue 2664143002: Revert "Debugging in kernel shaping up." (Closed)
Patch Set: Revert "Debugging in kernel shaping up." Created 3 years, 10 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 | runtime/vm/debugger.cc » ('j') | 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 5390 matching lines...) Expand 10 before | Expand all | Expand 10 after
5401 // NOTE: Now the VM owns the [kernel_program] memory! Currently we do not 5401 // NOTE: Now the VM owns the [kernel_program] memory! Currently we do not
5402 // free it because (similar to the token stream) it will be used to repeatedly 5402 // free it because (similar to the token stream) it will be used to repeatedly
5403 // run the `kernel::FlowGraphBuilder()`. 5403 // run the `kernel::FlowGraphBuilder()`.
5404 kernel::KernelReader reader( 5404 kernel::KernelReader reader(
5405 reinterpret_cast<kernel::Program*>(kernel_program)); 5405 reinterpret_cast<kernel::Program*>(kernel_program));
5406 const Object& tmp = reader.ReadProgram(); 5406 const Object& tmp = reader.ReadProgram();
5407 if (tmp.IsError()) { 5407 if (tmp.IsError()) {
5408 return Api::NewHandle(T, tmp.raw()); 5408 return Api::NewHandle(T, tmp.raw());
5409 } 5409 }
5410 library ^= tmp.raw(); 5410 library ^= tmp.raw();
5411 library.set_debuggable(false);
5411 I->object_store()->set_root_library(library); 5412 I->object_store()->set_root_library(library);
5412 return Api::NewHandle(T, library.raw()); 5413 return Api::NewHandle(T, library.raw());
5413 #endif 5414 #endif
5414 } 5415 }
5415 5416
5416 5417
5417 DART_EXPORT Dart_Handle Dart_RootLibrary() { 5418 DART_EXPORT Dart_Handle Dart_RootLibrary() {
5418 Thread* thread = Thread::Current(); 5419 Thread* thread = Thread::Current();
5419 Isolate* isolate = thread->isolate(); 5420 Isolate* isolate = thread->isolate();
5420 CHECK_ISOLATE(isolate); 5421 CHECK_ISOLATE(isolate);
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
6819 } 6820 }
6820 6821
6821 6822
6822 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6823 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6823 #ifndef PRODUCT 6824 #ifndef PRODUCT
6824 Profiler::DumpStackTrace(context); 6825 Profiler::DumpStackTrace(context);
6825 #endif 6826 #endif
6826 } 6827 }
6827 6828
6828 } // namespace dart 6829 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698