| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 // The current stack limit. This may be overwritten with a special | 198 // The current stack limit. This may be overwritten with a special |
| 199 // value to trigger interrupts. | 199 // value to trigger interrupts. |
| 200 uword stack_limit() const { return stack_limit_; } | 200 uword stack_limit() const { return stack_limit_; } |
| 201 | 201 |
| 202 // The true stack limit for this isolate. | 202 // The true stack limit for this isolate. |
| 203 uword saved_stack_limit() const { return saved_stack_limit_; } | 203 uword saved_stack_limit() const { return saved_stack_limit_; } |
| 204 | 204 |
| 205 static uword GetSpecifiedStackSize(); | 205 static uword GetSpecifiedStackSize(); |
| 206 | 206 |
| 207 static const intptr_t kStackSizeBuffer = (16 * KB); | 207 static const intptr_t kStackSizeBuffer = (4 * KB * kWordSize); |
| 208 | 208 |
| 209 enum { | 209 enum { |
| 210 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate. | 210 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate. |
| 211 kMessageInterrupt = 0x2, // An interrupt to process an out of band message. | 211 kMessageInterrupt = 0x2, // An interrupt to process an out of band message. |
| 212 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer. | 212 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer. |
| 213 | 213 |
| 214 kInterruptsMask = | 214 kInterruptsMask = |
| 215 kApiInterrupt | | 215 kApiInterrupt | |
| 216 kMessageInterrupt | | 216 kMessageInterrupt | |
| 217 kStoreBufferInterrupt, | 217 kStoreBufferInterrupt, |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 Isolate* new_isolate_; | 460 Isolate* new_isolate_; |
| 461 Isolate* saved_isolate_; | 461 Isolate* saved_isolate_; |
| 462 uword saved_stack_limit_; | 462 uword saved_stack_limit_; |
| 463 | 463 |
| 464 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); | 464 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); |
| 465 }; | 465 }; |
| 466 | 466 |
| 467 } // namespace dart | 467 } // namespace dart |
| 468 | 468 |
| 469 #endif // VM_ISOLATE_H_ | 469 #endif // VM_ISOLATE_H_ |
| OLD | NEW |