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

Side by Side Diff: vm/isolate.h

Issue 8673002: - Refactor the isolate callback mechanism to also include creation of the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
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"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 return init_callback_data_; 193 return init_callback_data_;
194 } 194 }
195 195
196 Dart_LibraryTagHandler library_tag_handler() const { 196 Dart_LibraryTagHandler library_tag_handler() const {
197 return library_tag_handler_; 197 return library_tag_handler_;
198 } 198 }
199 void set_library_tag_handler(Dart_LibraryTagHandler value) { 199 void set_library_tag_handler(Dart_LibraryTagHandler value) {
200 library_tag_handler_ = value; 200 library_tag_handler_ = value;
201 } 201 }
202 202
203 static void SetInitCallback(Dart_IsolateInitCallback callback); 203 static void SetCreateCallback(Dart_IsolateCreateCallback cback);
204 static Dart_IsolateInitCallback InitCallback(); 204 static Dart_IsolateCreateCallback CreateCallback();
205 205
206 uword stack_limit_address() const { 206 uword stack_limit_address() const {
207 return reinterpret_cast<uword>(&stack_limit_); 207 return reinterpret_cast<uword>(&stack_limit_);
208 } 208 }
209 209
210 void SetStackLimit(uword value); 210 void SetStackLimit(uword value);
211 uword stack_limit() const { return stack_limit_; } 211 uword stack_limit() const { return stack_limit_; }
212 212
213 void SetStackLimitFromCurrentTOS(uword isolate_stack_top); 213 void SetStackLimitFromCurrentTOS(uword isolate_stack_top);
214 214
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 Dart_LibraryTagHandler library_tag_handler_; 258 Dart_LibraryTagHandler library_tag_handler_;
259 ApiState* api_state_; 259 ApiState* api_state_;
260 StubCode* stub_code_; 260 StubCode* stub_code_;
261 CodeIndexTable* code_index_table_; 261 CodeIndexTable* code_index_table_;
262 LongJump* long_jump_base_; 262 LongJump* long_jump_base_;
263 TimerList timer_list_; 263 TimerList timer_list_;
264 uword stack_limit_; 264 uword stack_limit_;
265 uword stack_limit_on_overflow_exception_; 265 uword stack_limit_on_overflow_exception_;
266 intptr_t ast_node_id_; 266 intptr_t ast_node_id_;
267 267
268 static Dart_IsolateInitCallback init_callback_; 268 static Dart_IsolateCreateCallback create_callback_;
269 269
270 DISALLOW_COPY_AND_ASSIGN(Isolate); 270 DISALLOW_COPY_AND_ASSIGN(Isolate);
271 }; 271 };
272 272
273 } // namespace dart 273 } // namespace dart
274 274
275 #if defined(TARGET_OS_LINUX) 275 #if defined(TARGET_OS_LINUX)
276 #include "vm/isolate_linux.h" 276 #include "vm/isolate_linux.h"
277 #elif defined(TARGET_OS_MACOS) 277 #elif defined(TARGET_OS_MACOS)
278 #include "vm/isolate_macos.h" 278 #include "vm/isolate_macos.h"
279 #elif defined(TARGET_OS_WINDOWS) 279 #elif defined(TARGET_OS_WINDOWS)
280 #include "vm/isolate_win.h" 280 #include "vm/isolate_win.h"
281 #else 281 #else
282 #error Unknown target os. 282 #error Unknown target os.
283 #endif 283 #endif
284 284
285 #endif // VM_ISOLATE_H_ 285 #endif // VM_ISOLATE_H_
OLDNEW
« vm/dart_api_impl.cc ('K') | « vm/dart_api_impl_test.cc ('k') | vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698