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

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

Issue 2998453002: Reverted due to vm test failure. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 RUNTIME_VM_THREAD_H_ 5 #ifndef RUNTIME_VM_THREAD_H_
6 #define RUNTIME_VM_THREAD_H_ 6 #define RUNTIME_VM_THREAD_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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 top_ = value; 370 top_ = value;
371 } 371 }
372 void set_end(uword value) { 372 void set_end(uword value) {
373 ASSERT(heap_ != NULL); 373 ASSERT(heap_ != NULL);
374 end_ = value; 374 end_ = value;
375 } 375 }
376 376
377 uword top() { return top_; } 377 uword top() { return top_; }
378 uword end() { return end_; } 378 uword end() { return end_; }
379 379
380 bool HasActiveTLAB() { return end_ > 0; }
381
382 static intptr_t top_offset() { return OFFSET_OF(Thread, top_); } 380 static intptr_t top_offset() { return OFFSET_OF(Thread, top_); }
383 static intptr_t end_offset() { return OFFSET_OF(Thread, end_); } 381 static intptr_t end_offset() { return OFFSET_OF(Thread, end_); }
384 382
385 int32_t no_handle_scope_depth() const { 383 int32_t no_handle_scope_depth() const {
386 #if defined(DEBUG) 384 #if defined(DEBUG)
387 return no_handle_scope_depth_; 385 return no_handle_scope_depth_;
388 #else 386 #else
389 return 0; 387 return 0;
390 #endif 388 #endif
391 } 389 }
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 // Disable thread interrupts. 832 // Disable thread interrupts.
835 class DisableThreadInterruptsScope : public StackResource { 833 class DisableThreadInterruptsScope : public StackResource {
836 public: 834 public:
837 explicit DisableThreadInterruptsScope(Thread* thread); 835 explicit DisableThreadInterruptsScope(Thread* thread);
838 ~DisableThreadInterruptsScope(); 836 ~DisableThreadInterruptsScope();
839 }; 837 };
840 838
841 } // namespace dart 839 } // namespace dart
842 840
843 #endif // RUNTIME_VM_THREAD_H_ 841 #endif // RUNTIME_VM_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698