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

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

Issue 516863002: Revert revision 39617 "Create isolates in a separate thread." (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 Isolate* saved_isolate_; 804 Isolate* saved_isolate_;
805 uword saved_stack_limit_; 805 uword saved_stack_limit_;
806 806
807 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); 807 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope);
808 }; 808 };
809 809
810 810
811 class IsolateSpawnState { 811 class IsolateSpawnState {
812 public: 812 public:
813 IsolateSpawnState(Dart_Port parent_port, 813 IsolateSpawnState(Dart_Port parent_port,
814 void* init_data,
815 const Function& func, 814 const Function& func,
816 const Instance& message); 815 const Instance& message);
817 IsolateSpawnState(Dart_Port parent_port, 816 IsolateSpawnState(Dart_Port parent_port,
818 void* init_data,
819 const char* script_url, 817 const char* script_url,
820 const Instance& args, 818 const Instance& args,
821 const Instance& message); 819 const Instance& message);
822 ~IsolateSpawnState(); 820 ~IsolateSpawnState();
823 821
824 Isolate* isolate() const { return isolate_; } 822 Isolate* isolate() const { return isolate_; }
825 void set_isolate(Isolate* value) { isolate_ = value; } 823 void set_isolate(Isolate* value) { isolate_ = value; }
826 824
827 Dart_Port parent_port() const { return parent_port_; } 825 Dart_Port parent_port() const { return parent_port_; }
828 void* init_data() const { return init_data_; }
829 char* script_url() const { return script_url_; } 826 char* script_url() const { return script_url_; }
830 char* library_url() const { return library_url_; } 827 char* library_url() const { return library_url_; }
831 char* class_name() const { return class_name_; } 828 char* class_name() const { return class_name_; }
832 char* function_name() const { return function_name_; } 829 char* function_name() const { return function_name_; }
833 char* exception_callback_name() const { return exception_callback_name_; } 830 char* exception_callback_name() const { return exception_callback_name_; }
834 bool is_spawn_uri() const { return library_url_ == NULL; } 831 bool is_spawn_uri() const { return library_url_ == NULL; }
835 832
836 RawObject* ResolveFunction(); 833 RawObject* ResolveFunction();
837 RawInstance* BuildArgs(); 834 RawInstance* BuildArgs();
838 RawInstance* BuildMessage(); 835 RawInstance* BuildMessage();
839 void Cleanup(); 836 void Cleanup();
840 837
841 private: 838 private:
842 Isolate* isolate_; 839 Isolate* isolate_;
843 Dart_Port parent_port_; 840 Dart_Port parent_port_;
844 void* init_data_;
845 char* script_url_; 841 char* script_url_;
846 char* library_url_; 842 char* library_url_;
847 char* class_name_; 843 char* class_name_;
848 char* function_name_; 844 char* function_name_;
849 char* exception_callback_name_; 845 char* exception_callback_name_;
850 uint8_t* serialized_args_; 846 uint8_t* serialized_args_;
851 intptr_t serialized_args_len_; 847 intptr_t serialized_args_len_;
852 uint8_t* serialized_message_; 848 uint8_t* serialized_message_;
853 intptr_t serialized_message_len_; 849 intptr_t serialized_message_len_;
854 }; 850 };
855 851
856 } // namespace dart 852 } // namespace dart
857 853
858 #endif // VM_ISOLATE_H_ 854 #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