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

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

Issue 19870006: Support stacktrace and objecthistogram service commands (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/heap_histogram.cc ('k') | runtime/vm/json_stream.h » ('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 "vm/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/json.h" 9 #include "platform/json.h"
10 #include "lib/mirrors.h" 10 #include "lib/mirrors.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 if (result.IsError()) { 146 if (result.IsError()) {
147 success = ProcessUnhandledException(msg, Error::Cast(result)); 147 success = ProcessUnhandledException(msg, Error::Cast(result));
148 } else { 148 } else {
149 ASSERT(result.IsNull()); 149 ASSERT(result.IsNull());
150 } 150 }
151 } 151 }
152 delete message; 152 delete message;
153 return success; 153 return success;
154 } 154 }
155 155
156
156 RawFunction* IsolateMessageHandler::ResolveCallbackFunction() { 157 RawFunction* IsolateMessageHandler::ResolveCallbackFunction() {
157 ASSERT(isolate_->object_store()->unhandled_exception_handler() != NULL); 158 ASSERT(isolate_->object_store()->unhandled_exception_handler() != NULL);
158 String& callback_name = String::Handle(isolate_); 159 String& callback_name = String::Handle(isolate_);
159 if (isolate_->object_store()->unhandled_exception_handler() != 160 if (isolate_->object_store()->unhandled_exception_handler() !=
160 String::null()) { 161 String::null()) {
161 callback_name = isolate_->object_store()->unhandled_exception_handler(); 162 callback_name = isolate_->object_store()->unhandled_exception_handler();
162 } else { 163 } else {
163 callback_name = String::New("_unhandledExceptionCallback"); 164 callback_name = String::New("_unhandledExceptionCallback");
164 } 165 }
165 Library& lib = 166 Library& lib =
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 return func.raw(); 1199 return func.raw();
1199 } 1200 }
1200 1201
1201 1202
1202 void IsolateSpawnState::Cleanup() { 1203 void IsolateSpawnState::Cleanup() {
1203 SwitchIsolateScope switch_scope(isolate()); 1204 SwitchIsolateScope switch_scope(isolate());
1204 Dart::ShutdownIsolate(); 1205 Dart::ShutdownIsolate();
1205 } 1206 }
1206 1207
1207 } // namespace dart 1208 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/heap_histogram.cc ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698