| OLD | NEW |
| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 217 } |
| 218 | 218 |
| 219 // The current stack limit. This may be overwritten with a special | 219 // The current stack limit. This may be overwritten with a special |
| 220 // value to trigger interrupts. | 220 // value to trigger interrupts. |
| 221 uword stack_limit() const { return stack_limit_; } | 221 uword stack_limit() const { return stack_limit_; } |
| 222 | 222 |
| 223 // The true stack limit for this isolate. | 223 // The true stack limit for this isolate. |
| 224 uword saved_stack_limit() const { return saved_stack_limit_; } | 224 uword saved_stack_limit() const { return saved_stack_limit_; } |
| 225 | 225 |
| 226 // Retrieve the stack address bounds. | 226 // Retrieve the stack address bounds. |
| 227 bool GetStackBounds(uintptr_t* lower, uintptr_t* upper); | 227 bool GetStackBounds(uword* lower, uword* upper); |
| 228 | 228 |
| 229 static uword GetSpecifiedStackSize(); | 229 static uword GetSpecifiedStackSize(); |
| 230 | 230 |
| 231 static const intptr_t kStackSizeBuffer = (4 * KB * kWordSize); | 231 static const intptr_t kStackSizeBuffer = (4 * KB * kWordSize); |
| 232 | 232 |
| 233 enum { | 233 enum { |
| 234 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate. | 234 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate. |
| 235 kMessageInterrupt = 0x2, // An interrupt to process an out of band message. | 235 kMessageInterrupt = 0x2, // An interrupt to process an out of band message. |
| 236 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer. | 236 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer. |
| 237 kVmStatusInterrupt = 0x8, // An interrupt to process a status request. | 237 kVmStatusInterrupt = 0x8, // An interrupt to process a status request. |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 char* script_url_; | 619 char* script_url_; |
| 620 char* library_url_; | 620 char* library_url_; |
| 621 char* class_name_; | 621 char* class_name_; |
| 622 char* function_name_; | 622 char* function_name_; |
| 623 char* exception_callback_name_; | 623 char* exception_callback_name_; |
| 624 }; | 624 }; |
| 625 | 625 |
| 626 } // namespace dart | 626 } // namespace dart |
| 627 | 627 |
| 628 #endif // VM_ISOLATE_H_ | 628 #endif // VM_ISOLATE_H_ |
| OLD | NEW |