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

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

Issue 8687037: Very first steps for a debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/disassembler_ia32.cc ('k') | runtime/vm/isolate.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include <limits.h> 8 #include <limits.h>
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
11 #include "vm/assert.h" 11 #include "vm/assert.h"
12 #include "vm/store_buffer.h" 12 #include "vm/store_buffer.h"
13 #include "vm/timer.h" 13 #include "vm/timer.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 // Forward declarations. 17 // Forward declarations.
18 class ApiState; 18 class ApiState;
19 class BigintStore; 19 class BigintStore;
20 class CodeIndexTable; 20 class CodeIndexTable;
21 class Debugger;
21 class HandleScope; 22 class HandleScope;
22 class Heap; 23 class Heap;
23 class LongJump; 24 class LongJump;
24 class MessageQueue; 25 class MessageQueue;
25 class Monitor; 26 class Monitor;
26 class ObjectPointerVisitor; 27 class ObjectPointerVisitor;
27 class ObjectStore; 28 class ObjectStore;
28 class RawContext; 29 class RawContext;
29 class StackResource; 30 class StackResource;
30 class StubCode; 31 class StubCode;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 236
236 void AdjustStackLimitForException() { 237 void AdjustStackLimitForException() {
237 stack_limit_ = stack_limit_on_overflow_exception_; 238 stack_limit_ = stack_limit_on_overflow_exception_;
238 } 239 }
239 240
240 void StandardRunLoop(); 241 void StandardRunLoop();
241 242
242 intptr_t ast_node_id() const { return ast_node_id_; } 243 intptr_t ast_node_id() const { return ast_node_id_; }
243 void set_ast_node_id(int value) { ast_node_id_ = value; } 244 void set_ast_node_id(int value) { ast_node_id_ = value; }
244 245
246 Debugger* debugger() const { return debugger_; }
247
245 private: 248 private:
246 Isolate(); 249 Isolate();
247 250
248 void PrintInvokedFunctions(); 251 void PrintInvokedFunctions();
249 252
250 static uword GetSpecifiedStackSize(); 253 static uword GetSpecifiedStackSize();
251 254
252 static const uword kStackSizeBuffer = (128 * KB); 255 static const uword kStackSizeBuffer = (128 * KB);
253 static const uword kDefaultStackSize = (1 * MB); 256 static const uword kDefaultStackSize = (1 * MB);
254 257
(...skipping 16 matching lines...) Expand all
271 HandleScope* top_handle_scope_; 274 HandleScope* top_handle_scope_;
272 #endif 275 #endif
273 int32_t random_seed_; 276 int32_t random_seed_;
274 BigintStore* bigint_store_; 277 BigintStore* bigint_store_;
275 uword top_exit_frame_info_; 278 uword top_exit_frame_info_;
276 void* init_callback_data_; 279 void* init_callback_data_;
277 Dart_LibraryTagHandler library_tag_handler_; 280 Dart_LibraryTagHandler library_tag_handler_;
278 ApiState* api_state_; 281 ApiState* api_state_;
279 StubCode* stub_code_; 282 StubCode* stub_code_;
280 CodeIndexTable* code_index_table_; 283 CodeIndexTable* code_index_table_;
284 Debugger* debugger_;
281 LongJump* long_jump_base_; 285 LongJump* long_jump_base_;
282 TimerList timer_list_; 286 TimerList timer_list_;
283 uword stack_limit_; 287 uword stack_limit_;
284 uword stack_limit_on_overflow_exception_; 288 uword stack_limit_on_overflow_exception_;
285 intptr_t ast_node_id_; 289 intptr_t ast_node_id_;
286 290
287 static Dart_IsolateInitCallback init_callback_; 291 static Dart_IsolateInitCallback init_callback_;
288 292
289 DISALLOW_COPY_AND_ASSIGN(Isolate); 293 DISALLOW_COPY_AND_ASSIGN(Isolate);
290 }; 294 };
291 295
292 } // namespace dart 296 } // namespace dart
293 297
294 #if defined(TARGET_OS_LINUX) 298 #if defined(TARGET_OS_LINUX)
295 #include "vm/isolate_linux.h" 299 #include "vm/isolate_linux.h"
296 #elif defined(TARGET_OS_MACOS) 300 #elif defined(TARGET_OS_MACOS)
297 #include "vm/isolate_macos.h" 301 #include "vm/isolate_macos.h"
298 #elif defined(TARGET_OS_WINDOWS) 302 #elif defined(TARGET_OS_WINDOWS)
299 #include "vm/isolate_win.h" 303 #include "vm/isolate_win.h"
300 #else 304 #else
301 #error Unknown target os. 305 #error Unknown target os.
302 #endif 306 #endif
303 307
304 #endif // VM_ISOLATE_H_ 308 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698