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

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

Issue 1336763002: Last snapshot bits to get working precompiled hello_world on x64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void InitializeStackLimit(); 254 void InitializeStackLimit();
255 void SetStackLimit(uword value); 255 void SetStackLimit(uword value);
256 void SetStackLimitFromStackBase(uword stack_base); 256 void SetStackLimitFromStackBase(uword stack_base);
257 void ClearStackLimit(); 257 void ClearStackLimit();
258 258
259 // Returns the current C++ stack pointer. Equivalent taking the address of a 259 // Returns the current C++ stack pointer. Equivalent taking the address of a
260 // stack allocated local, but plays well with AddressSanitizer. 260 // stack allocated local, but plays well with AddressSanitizer.
261 // TODO(koda): Move to Thread. 261 // TODO(koda): Move to Thread.
262 static uword GetCurrentStackPointer(); 262 static uword GetCurrentStackPointer();
263 263
264 void SetupInstructionsSnapshotPage(
265 const uint8_t* instructions_snapshot_buffer);
266
264 // Returns true if any of the interrupts specified by 'interrupt_bits' are 267 // Returns true if any of the interrupts specified by 'interrupt_bits' are
265 // currently scheduled for this isolate, but leaves them unchanged. 268 // currently scheduled for this isolate, but leaves them unchanged.
266 // 269 //
267 // NOTE: The read uses relaxed memory ordering, i.e., it is atomic and 270 // NOTE: The read uses relaxed memory ordering, i.e., it is atomic and
268 // an interrupt is guaranteed to be observed eventually, but any further 271 // an interrupt is guaranteed to be observed eventually, but any further
269 // order guarantees must be ensured by other synchronization. See the 272 // order guarantees must be ensured by other synchronization. See the
270 // tests in isolate_test.cc for example usage. 273 // tests in isolate_test.cc for example usage.
271 bool HasInterruptsScheduled(uword interrupt_bits) { 274 bool HasInterruptsScheduled(uword interrupt_bits) {
272 ASSERT(interrupt_bits == (interrupt_bits & kInterruptsMask)); 275 ASSERT(interrupt_bits == (interrupt_bits & kInterruptsMask));
273 uword limit = AtomicOperations::LoadRelaxed(&stack_limit_); 276 uword limit = AtomicOperations::LoadRelaxed(&stack_limit_);
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 uint8_t* serialized_message_; 1127 uint8_t* serialized_message_;
1125 intptr_t serialized_message_len_; 1128 intptr_t serialized_message_len_;
1126 Isolate::Flags isolate_flags_; 1129 Isolate::Flags isolate_flags_;
1127 bool paused_; 1130 bool paused_;
1128 bool errors_are_fatal_; 1131 bool errors_are_fatal_;
1129 }; 1132 };
1130 1133
1131 } // namespace dart 1134 } // namespace dart
1132 1135
1133 #endif // VM_ISOLATE_H_ 1136 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698