| 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 "vm/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 uword saved_stack_limit() const { return saved_stack_limit_; } | 257 uword saved_stack_limit() const { return saved_stack_limit_; } |
| 258 | 258 |
| 259 // Stack overflow flags | 259 // Stack overflow flags |
| 260 enum { | 260 enum { |
| 261 kOsrRequest = 0x1, // Current stack overflow caused by OSR request. | 261 kOsrRequest = 0x1, // Current stack overflow caused by OSR request. |
| 262 }; | 262 }; |
| 263 | 263 |
| 264 uword stack_overflow_flags_address() const { | 264 uword stack_overflow_flags_address() const { |
| 265 return reinterpret_cast<uword>(&stack_overflow_flags_); | 265 return reinterpret_cast<uword>(&stack_overflow_flags_); |
| 266 } | 266 } |
| 267 static intptr_t stack_overflow_flags_offset() { |
| 268 return OFFSET_OF(Isolate, stack_overflow_flags_); |
| 269 } |
| 267 | 270 |
| 268 int32_t IncrementAndGetStackOverflowCount() { | 271 int32_t IncrementAndGetStackOverflowCount() { |
| 269 return ++stack_overflow_count_; | 272 return ++stack_overflow_count_; |
| 270 } | 273 } |
| 271 | 274 |
| 272 // Retrieves and clears the stack overflow flags. These are set by | 275 // Retrieves and clears the stack overflow flags. These are set by |
| 273 // the generated code before the slow path runtime routine for a | 276 // the generated code before the slow path runtime routine for a |
| 274 // stack overflow is called. | 277 // stack overflow is called. |
| 275 uword GetAndClearStackOverflowFlags(); | 278 uword GetAndClearStackOverflowFlags(); |
| 276 | 279 |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 intptr_t* spawn_count_; | 1006 intptr_t* spawn_count_; |
| 1004 | 1007 |
| 1005 Isolate::Flags isolate_flags_; | 1008 Isolate::Flags isolate_flags_; |
| 1006 bool paused_; | 1009 bool paused_; |
| 1007 bool errors_are_fatal_; | 1010 bool errors_are_fatal_; |
| 1008 }; | 1011 }; |
| 1009 | 1012 |
| 1010 } // namespace dart | 1013 } // namespace dart |
| 1011 | 1014 |
| 1012 #endif // VM_ISOLATE_H_ | 1015 #endif // VM_ISOLATE_H_ |
| OLD | NEW |