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

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

Issue 1584443002: VM: Precompiled rodata snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: win32, android build Created 4 years, 11 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/atomic.h" 10 #include "vm/atomic.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void SetStackLimitFromStackBase(uword stack_base); 217 void SetStackLimitFromStackBase(uword stack_base);
218 void ClearStackLimit(); 218 void ClearStackLimit();
219 219
220 // Returns the current C++ stack pointer. Equivalent taking the address of a 220 // Returns the current C++ stack pointer. Equivalent taking the address of a
221 // stack allocated local, but plays well with AddressSanitizer. 221 // stack allocated local, but plays well with AddressSanitizer.
222 // TODO(koda): Move to Thread. 222 // TODO(koda): Move to Thread.
223 static uword GetCurrentStackPointer(); 223 static uword GetCurrentStackPointer();
224 224
225 void SetupInstructionsSnapshotPage( 225 void SetupInstructionsSnapshotPage(
226 const uint8_t* instructions_snapshot_buffer); 226 const uint8_t* instructions_snapshot_buffer);
227 void SetupDataSnapshotPage(
228 const uint8_t* instructions_snapshot_buffer);
227 229
228 // Returns true if any of the interrupts specified by 'interrupt_bits' are 230 // Returns true if any of the interrupts specified by 'interrupt_bits' are
229 // currently scheduled for this isolate, but leaves them unchanged. 231 // currently scheduled for this isolate, but leaves them unchanged.
230 // 232 //
231 // NOTE: The read uses relaxed memory ordering, i.e., it is atomic and 233 // NOTE: The read uses relaxed memory ordering, i.e., it is atomic and
232 // an interrupt is guaranteed to be observed eventually, but any further 234 // an interrupt is guaranteed to be observed eventually, but any further
233 // order guarantees must be ensured by other synchronization. See the 235 // order guarantees must be ensured by other synchronization. See the
234 // tests in isolate_test.cc for example usage. 236 // tests in isolate_test.cc for example usage.
235 bool HasInterruptsScheduled(uword interrupt_bits) { 237 bool HasInterruptsScheduled(uword interrupt_bits) {
236 ASSERT(interrupt_bits == (interrupt_bits & kInterruptsMask)); 238 ASSERT(interrupt_bits == (interrupt_bits & kInterruptsMask));
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 intptr_t* spawn_count_; 992 intptr_t* spawn_count_;
991 993
992 Isolate::Flags isolate_flags_; 994 Isolate::Flags isolate_flags_;
993 bool paused_; 995 bool paused_;
994 bool errors_are_fatal_; 996 bool errors_are_fatal_;
995 }; 997 };
996 998
997 } // namespace dart 999 } // namespace dart
998 1000
999 #endif // VM_ISOLATE_H_ 1001 #endif // VM_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698