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

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
« no previous file with comments | « vm/dart_api_impl_test.cc ('k') | 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"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 return init_callback_data_; 211 return init_callback_data_;
212 } 212 }
213 213
214 Dart_LibraryTagHandler library_tag_handler() const { 214 Dart_LibraryTagHandler library_tag_handler() const {
215 return library_tag_handler_; 215 return library_tag_handler_;
216 } 216 }
217 void set_library_tag_handler(Dart_LibraryTagHandler value) { 217 void set_library_tag_handler(Dart_LibraryTagHandler value) {
218 library_tag_handler_ = value; 218 library_tag_handler_ = value;
219 } 219 }
220 220
221 static void SetInitCallback(Dart_IsolateInitCallback callback); 221 static void SetCreateCallback(Dart_IsolateCreateCallback cback);
222 static Dart_IsolateInitCallback InitCallback(); 222 static Dart_IsolateCreateCallback CreateCallback();
223 223
224 uword stack_limit_address() const { 224 uword stack_limit_address() const {
225 return reinterpret_cast<uword>(&stack_limit_); 225 return reinterpret_cast<uword>(&stack_limit_);
226 } 226 }
227 227
228 void SetStackLimit(uword value); 228 void SetStackLimit(uword value);
229 uword stack_limit() const { return stack_limit_; } 229 uword stack_limit() const { return stack_limit_; }
230 230
231 void SetStackLimitFromCurrentTOS(uword isolate_stack_top); 231 void SetStackLimitFromCurrentTOS(uword isolate_stack_top);
232 232
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 ApiState* api_state_; 281 ApiState* api_state_;
282 StubCode* stub_code_; 282 StubCode* stub_code_;
283 CodeIndexTable* code_index_table_; 283 CodeIndexTable* code_index_table_;
284 Debugger* debugger_; 284 Debugger* debugger_;
285 LongJump* long_jump_base_; 285 LongJump* long_jump_base_;
286 TimerList timer_list_; 286 TimerList timer_list_;
287 uword stack_limit_; 287 uword stack_limit_;
288 uword stack_limit_on_overflow_exception_; 288 uword stack_limit_on_overflow_exception_;
289 intptr_t ast_node_id_; 289 intptr_t ast_node_id_;
290 290
291 static Dart_IsolateInitCallback init_callback_; 291 static Dart_IsolateCreateCallback create_callback_;
292 292
293 DISALLOW_COPY_AND_ASSIGN(Isolate); 293 DISALLOW_COPY_AND_ASSIGN(Isolate);
294 }; 294 };
295 295
296 } // namespace dart 296 } // namespace dart
297 297
298 #if defined(TARGET_OS_LINUX) 298 #if defined(TARGET_OS_LINUX)
299 #include "vm/isolate_linux.h" 299 #include "vm/isolate_linux.h"
300 #elif defined(TARGET_OS_MACOS) 300 #elif defined(TARGET_OS_MACOS)
301 #include "vm/isolate_macos.h" 301 #include "vm/isolate_macos.h"
302 #elif defined(TARGET_OS_WINDOWS) 302 #elif defined(TARGET_OS_WINDOWS)
303 #include "vm/isolate_win.h" 303 #include "vm/isolate_win.h"
304 #else 304 #else
305 #error Unknown target os. 305 #error Unknown target os.
306 #endif 306 #endif
307 307
308 #endif // VM_ISOLATE_H_ 308 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « 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