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

Side by Side Diff: runtime/vm/isolate.h

Issue 1259223005: Safepoint interface and unit tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add comment about overflow. Created 5 years, 4 months 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
OLDNEW
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/base_isolate.h" 10 #include "vm/base_isolate.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 bool GetProfilerStackBounds(uword* lower, uword* upper) const; 320 bool GetProfilerStackBounds(uword* lower, uword* upper) const;
321 321
322 static uword GetSpecifiedStackSize(); 322 static uword GetSpecifiedStackSize();
323 323
324 static const intptr_t kStackSizeBuffer = (4 * KB * kWordSize); 324 static const intptr_t kStackSizeBuffer = (4 * KB * kWordSize);
325 325
326 // Interrupt bits. 326 // Interrupt bits.
327 enum { 327 enum {
328 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate. 328 kApiInterrupt = 0x1, // An interrupt from Dart_InterruptIsolate.
329 kMessageInterrupt = 0x2, // An interrupt to process an out of band message. 329 kMessageInterrupt = 0x2, // An interrupt to process an out of band message.
330 kStoreBufferInterrupt = 0x4, // An interrupt to process the store buffer. 330 kVMInterrupt = 0x4, // Internal VM checks: safepoints, store buffers, etc.
331 331
332 kInterruptsMask = 332 kInterruptsMask =
333 kApiInterrupt | 333 kApiInterrupt |
334 kMessageInterrupt | 334 kMessageInterrupt |
335 kStoreBufferInterrupt, 335 kVMInterrupt,
336 }; 336 };
337 337
338 void ScheduleInterrupts(uword interrupt_bits); 338 void ScheduleInterrupts(uword interrupt_bits);
339 uword GetAndClearInterrupts(); 339 uword GetAndClearInterrupts();
340 340
341 // Marks all libraries as loaded. 341 // Marks all libraries as loaded.
342 void DoneLoading(); 342 void DoneLoading();
343 343
344 bool MakeRunnable(); 344 bool MakeRunnable();
345 void Run(); 345 void Run();
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 uint8_t* serialized_message_; 1064 uint8_t* serialized_message_;
1065 intptr_t serialized_message_len_; 1065 intptr_t serialized_message_len_;
1066 Isolate::Flags isolate_flags_; 1066 Isolate::Flags isolate_flags_;
1067 bool paused_; 1067 bool paused_;
1068 bool errors_are_fatal_; 1068 bool errors_are_fatal_;
1069 }; 1069 };
1070 1070
1071 } // namespace dart 1071 } // namespace dart
1072 1072
1073 #endif // VM_ISOLATE_H_ 1073 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698