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

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

Issue 1270803003: VM: More abstract interface for generating stub calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
« no previous file with comments | « runtime/vm/stub_code_x64.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 VM_THREAD_H_ 5 #ifndef VM_THREAD_H_
6 #define VM_THREAD_H_ 6 #define VM_THREAD_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/os_thread.h" 9 #include "vm/os_thread.h"
10 #include "vm/store_buffer.h" 10 #include "vm/store_buffer.h"
(...skipping 12 matching lines...) Expand all
23 23
24 24
25 // List of VM-global objects/addresses cached in each Thread object. 25 // List of VM-global objects/addresses cached in each Thread object.
26 #define CACHED_VM_OBJECTS_LIST(V) \ 26 #define CACHED_VM_OBJECTS_LIST(V) \
27 V(RawObject*, object_null_, Object::null(), NULL) \ 27 V(RawObject*, object_null_, Object::null(), NULL) \
28 V(RawBool*, bool_true_, Object::bool_true().raw(), NULL) \ 28 V(RawBool*, bool_true_, Object::bool_true().raw(), NULL) \
29 V(RawBool*, bool_false_, Object::bool_false().raw(), NULL) \ 29 V(RawBool*, bool_false_, Object::bool_false().raw(), NULL) \
30 30
31 #define CACHED_ADDRESSES_LIST(V) \ 31 #define CACHED_ADDRESSES_LIST(V) \
32 V(uword, update_store_buffer_entry_point_, \ 32 V(uword, update_store_buffer_entry_point_, \
33 StubCode::UpdateStoreBufferEntryPoint(), 0) 33 StubCode::UpdateStoreBuffer_entry()->EntryPoint(), 0)
34 34
35 #define CACHED_CONSTANTS_LIST(V) \ 35 #define CACHED_CONSTANTS_LIST(V) \
36 CACHED_VM_OBJECTS_LIST(V) \ 36 CACHED_VM_OBJECTS_LIST(V) \
37 CACHED_ADDRESSES_LIST(V) 37 CACHED_ADDRESSES_LIST(V)
38 38
39 39
40 // A VM thread; may be executing Dart code or performing helper tasks like 40 // A VM thread; may be executing Dart code or performing helper tasks like
41 // garbage collection or compilation. The Thread structure associated with 41 // garbage collection or compilation. The Thread structure associated with
42 // a thread is allocated by EnsureInit before entering an isolate, and destroyed 42 // a thread is allocated by EnsureInit before entering an isolate, and destroyed
43 // automatically when the underlying OS thread exits. NOTE: On Windows, CleanUp 43 // automatically when the underlying OS thread exits. NOTE: On Windows, CleanUp
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 friend class ApiZone; 240 friend class ApiZone;
241 friend class Isolate; 241 friend class Isolate;
242 friend class StackZone; 242 friend class StackZone;
243 DISALLOW_COPY_AND_ASSIGN(Thread); 243 DISALLOW_COPY_AND_ASSIGN(Thread);
244 }; 244 };
245 245
246 } // namespace dart 246 } // namespace dart
247 247
248 #endif // VM_THREAD_H_ 248 #endif // VM_THREAD_H_
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698