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

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

Issue 1390153004: Move deopt_id and related helpers/definitions from Isolate to Thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« runtime/vm/intermediate_language.h ('K') | « runtime/vm/thread.h ('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 #include "vm/thread.h" 5 #include "vm/thread.h"
6 6
7 #include "vm/growable_array.h" 7 #include "vm/growable_array.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/log.h" 10 #include "vm/log.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 118
119 Thread::Thread(bool init_vm_constants) 119 Thread::Thread(bool init_vm_constants)
120 : id_(OSThread::GetCurrentThreadId()), 120 : id_(OSThread::GetCurrentThreadId()),
121 thread_interrupt_callback_(NULL), 121 thread_interrupt_callback_(NULL),
122 thread_interrupt_data_(NULL), 122 thread_interrupt_data_(NULL),
123 isolate_(NULL), 123 isolate_(NULL),
124 heap_(NULL), 124 heap_(NULL),
125 store_buffer_block_(NULL), 125 store_buffer_block_(NULL),
126 log_(new class Log()), 126 log_(new class Log()),
127 deopt_id_(0),
127 vm_tag_(0), 128 vm_tag_(0),
128 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) 129 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS)
129 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) 130 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT)
130 reusable_handles_() { 131 reusable_handles_() {
131 ClearState(); 132 ClearState();
132 133
133 #define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \ 134 #define DEFAULT_INIT(type_name, member_name, init_expr, default_init_value) \
134 member_name = default_init_value; 135 member_name = default_init_value;
135 CACHED_CONSTANTS_LIST(DEFAULT_INIT) 136 CACHED_CONSTANTS_LIST(DEFAULT_INIT)
136 #undef DEFAULT_INIT 137 #undef DEFAULT_INIT
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 return Thread::name##_entry_point_offset(); \ 426 return Thread::name##_entry_point_offset(); \
426 } 427 }
427 LEAF_RUNTIME_ENTRY_LIST(COMPUTE_OFFSET) 428 LEAF_RUNTIME_ENTRY_LIST(COMPUTE_OFFSET)
428 #undef COMPUTE_OFFSET 429 #undef COMPUTE_OFFSET
429 430
430 UNREACHABLE(); 431 UNREACHABLE();
431 return -1; 432 return -1;
432 } 433 }
433 434
434 } // namespace dart 435 } // namespace dart
OLDNEW
« runtime/vm/intermediate_language.h ('K') | « runtime/vm/thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698