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

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

Issue 2995723002: - Convert all isolate flags to a bit field. (Closed)
Patch Set: Address build error. 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/kernel_isolate.cc ('k') | runtime/vm/unit_test.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) 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/service_isolate.h" 5 #include "vm/service_isolate.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 void ServiceIsolate::SetServicePort(Dart_Port port) { 251 void ServiceIsolate::SetServicePort(Dart_Port port) {
252 MonitorLocker ml(monitor_); 252 MonitorLocker ml(monitor_);
253 port_ = port; 253 port_ = port;
254 } 254 }
255 255
256 void ServiceIsolate::SetServiceIsolate(Isolate* isolate) { 256 void ServiceIsolate::SetServiceIsolate(Isolate* isolate) {
257 MonitorLocker ml(monitor_); 257 MonitorLocker ml(monitor_);
258 isolate_ = isolate; 258 isolate_ = isolate;
259 if (isolate_ != NULL) { 259 if (isolate_ != NULL) {
260 isolate_->is_service_isolate_ = true; 260 isolate_->set_is_service_isolate(true);
261 origin_ = isolate_->origin_id(); 261 origin_ = isolate_->origin_id();
262 } 262 }
263 } 263 }
264 264
265 void ServiceIsolate::SetLoadPort(Dart_Port port) { 265 void ServiceIsolate::SetLoadPort(Dart_Port port) {
266 MonitorLocker ml(monitor_); 266 MonitorLocker ml(monitor_);
267 load_port_ = port; 267 load_port_ = port;
268 } 268 }
269 269
270 void ServiceIsolate::MaybeMakeServiceIsolate(Isolate* I) { 270 void ServiceIsolate::MaybeMakeServiceIsolate(Isolate* I) {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 if (result.IsReceivePort()) { 523 if (result.IsReceivePort()) {
524 port = ReceivePort::Cast(result).Id(); 524 port = ReceivePort::Cast(result).Id();
525 } 525 }
526 ASSERT(port != ILLEGAL_PORT); 526 ASSERT(port != ILLEGAL_PORT);
527 ServiceIsolate::SetServicePort(port); 527 ServiceIsolate::SetServicePort(port);
528 } 528 }
529 529
530 void ServiceIsolate::VisitObjectPointers(ObjectPointerVisitor* visitor) {} 530 void ServiceIsolate::VisitObjectPointers(ObjectPointerVisitor* visitor) {}
531 531
532 } // namespace dart 532 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/kernel_isolate.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698