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

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

Issue 14927003: Revert 22380 to investigate windows build break. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/heap.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) 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 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 static void SetShutdownCallback(Dart_IsolateShutdownCallback cb) { 376 static void SetShutdownCallback(Dart_IsolateShutdownCallback cb) {
377 shutdown_callback_ = cb; 377 shutdown_callback_ = cb;
378 } 378 }
379 static Dart_IsolateShutdownCallback ShutdownCallback() { 379 static Dart_IsolateShutdownCallback ShutdownCallback() {
380 return shutdown_callback_; 380 return shutdown_callback_;
381 } 381 }
382 382
383 static void SetFileCallbacks(Dart_FileOpenCallback file_open, 383 static void SetFileCallbacks(Dart_FileOpenCallback file_open,
384 Dart_FileReadCallback file_read,
385 Dart_FileWriteCallback file_write, 384 Dart_FileWriteCallback file_write,
386 Dart_FileCloseCallback file_close) { 385 Dart_FileCloseCallback file_close) {
387 file_open_callback_ = file_open; 386 file_open_callback_ = file_open;
388 file_read_callback_ = file_read;
389 file_write_callback_ = file_write; 387 file_write_callback_ = file_write;
390 file_close_callback_ = file_close; 388 file_close_callback_ = file_close;
391 } 389 }
392 390
393 static Dart_FileOpenCallback file_open_callback() { 391 static Dart_FileOpenCallback file_open_callback() {
394 return file_open_callback_; 392 return file_open_callback_;
395 } 393 }
396 static Dart_FileReadCallback file_read_callback() {
397 return file_read_callback_;
398 }
399 static Dart_FileWriteCallback file_write_callback() { 394 static Dart_FileWriteCallback file_write_callback() {
400 return file_write_callback_; 395 return file_write_callback_;
401 } 396 }
402 static Dart_FileCloseCallback file_close_callback() { 397 static Dart_FileCloseCallback file_close_callback() {
403 return file_close_callback_; 398 return file_close_callback_;
404 } 399 }
405 400
406 intptr_t* deopt_cpu_registers_copy() const { 401 intptr_t* deopt_cpu_registers_copy() const {
407 return deopt_cpu_registers_copy_; 402 return deopt_cpu_registers_copy_;
408 } 403 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 513
519 // Status support. 514 // Status support.
520 char* stacktrace_; 515 char* stacktrace_;
521 intptr_t stack_frame_index_; 516 intptr_t stack_frame_index_;
522 517
523 static Dart_IsolateCreateCallback create_callback_; 518 static Dart_IsolateCreateCallback create_callback_;
524 static Dart_IsolateInterruptCallback interrupt_callback_; 519 static Dart_IsolateInterruptCallback interrupt_callback_;
525 static Dart_IsolateUnhandledExceptionCallback unhandled_exception_callback_; 520 static Dart_IsolateUnhandledExceptionCallback unhandled_exception_callback_;
526 static Dart_IsolateShutdownCallback shutdown_callback_; 521 static Dart_IsolateShutdownCallback shutdown_callback_;
527 static Dart_FileOpenCallback file_open_callback_; 522 static Dart_FileOpenCallback file_open_callback_;
528 static Dart_FileReadCallback file_read_callback_;
529 static Dart_FileWriteCallback file_write_callback_; 523 static Dart_FileWriteCallback file_write_callback_;
530 static Dart_FileCloseCallback file_close_callback_; 524 static Dart_FileCloseCallback file_close_callback_;
531 static Dart_IsolateInterruptCallback vmstats_callback_; 525 static Dart_IsolateInterruptCallback vmstats_callback_;
532 526
533 DISALLOW_COPY_AND_ASSIGN(Isolate); 527 DISALLOW_COPY_AND_ASSIGN(Isolate);
534 }; 528 };
535 529
536 // When we need to execute code in an isolate, we use the 530 // When we need to execute code in an isolate, we use the
537 // StartIsolateScope. 531 // StartIsolateScope.
538 class StartIsolateScope { 532 class StartIsolateScope {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 635
642 private: 636 private:
643 Isolate::IsolateRunState saved_state_; 637 Isolate::IsolateRunState saved_state_;
644 638
645 DISALLOW_COPY_AND_ASSIGN(IsolateRunStateManager); 639 DISALLOW_COPY_AND_ASSIGN(IsolateRunStateManager);
646 }; 640 };
647 641
648 } // namespace dart 642 } // namespace dart
649 643
650 #endif // VM_ISOLATE_H_ 644 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698