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

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

Issue 1074223002: Update Isolate API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo Created 5 years, 8 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/lib/isolate_patch.dart ('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 "vm/base_isolate.h" 10 #include "vm/base_isolate.h"
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // Verify that the sender has the capability to pause or terminate the 414 // Verify that the sender has the capability to pause or terminate the
415 // isolate. 415 // isolate.
416 bool VerifyPauseCapability(const Object& capability) const; 416 bool VerifyPauseCapability(const Object& capability) const;
417 bool VerifyTerminateCapability(const Object& capability) const; 417 bool VerifyTerminateCapability(const Object& capability) const;
418 418
419 // Returns true if the capability was added or removed from this isolate's 419 // Returns true if the capability was added or removed from this isolate's
420 // list of pause events. 420 // list of pause events.
421 bool AddResumeCapability(const Capability& capability); 421 bool AddResumeCapability(const Capability& capability);
422 bool RemoveResumeCapability(const Capability& capability); 422 bool RemoveResumeCapability(const Capability& capability);
423 423
424 void AddExitListener(const SendPort& listener); 424 void AddExitListener(const SendPort& listener, const Instance& response);
425 void RemoveExitListener(const SendPort& listener); 425 void RemoveExitListener(const SendPort& listener);
426 void NotifyExitListeners(); 426 void NotifyExitListeners();
427 427
428 void AddErrorListener(const SendPort& listener); 428 void AddErrorListener(const SendPort& listener);
429 void RemoveErrorListener(const SendPort& listener); 429 void RemoveErrorListener(const SendPort& listener);
430 void NotifyErrorListeners(const String& msg, const String& stacktrace); 430 void NotifyErrorListeners(const String& msg, const String& stacktrace);
431 431
432 bool ErrorsFatal() const { return errors_fatal_; } 432 bool ErrorsFatal() const { return errors_fatal_; }
433 void SetErrorsFatal(bool val) { errors_fatal_ = val; } 433 void SetErrorsFatal(bool val) { errors_fatal_ = val; }
434 434
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 uint8_t* serialized_args_; 947 uint8_t* serialized_args_;
948 intptr_t serialized_args_len_; 948 intptr_t serialized_args_len_;
949 uint8_t* serialized_message_; 949 uint8_t* serialized_message_;
950 intptr_t serialized_message_len_; 950 intptr_t serialized_message_len_;
951 bool paused_; 951 bool paused_;
952 }; 952 };
953 953
954 } // namespace dart 954 } // namespace dart
955 955
956 #endif // VM_ISOLATE_H_ 956 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/lib/isolate_patch.dart ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698