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

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

Issue 798873007: Temporarily move vm_tag_ from BaseIsolate to Isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/isolate.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) 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 #include "vm/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/json.h" 9 #include "platform/json.h"
10 #include "vm/code_observers.h" 10 #include "vm/code_observers.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 #define REUSABLE_HANDLE_SCOPE_INIT(object) \ 429 #define REUSABLE_HANDLE_SCOPE_INIT(object) \
430 reusable_##object##_handle_scope_active_(false), 430 reusable_##object##_handle_scope_active_(false),
431 #else 431 #else
432 #define REUSABLE_HANDLE_SCOPE_INIT(object) 432 #define REUSABLE_HANDLE_SCOPE_INIT(object)
433 #endif // defined(DEBUG) 433 #endif // defined(DEBUG)
434 434
435 #define REUSABLE_HANDLE_INITIALIZERS(object) \ 435 #define REUSABLE_HANDLE_INITIALIZERS(object) \
436 object##_handle_(NULL), 436 object##_handle_(NULL),
437 437
438 Isolate::Isolate() 438 Isolate::Isolate()
439 : store_buffer_(), 439 : vm_tag_(0),
440 store_buffer_(),
440 message_notify_callback_(NULL), 441 message_notify_callback_(NULL),
441 name_(NULL), 442 name_(NULL),
442 start_time_(OS::GetCurrentTimeMicros()), 443 start_time_(OS::GetCurrentTimeMicros()),
443 main_port_(0), 444 main_port_(0),
444 origin_id_(0), 445 origin_id_(0),
445 pause_capability_(0), 446 pause_capability_(0),
446 terminate_capability_(0), 447 terminate_capability_(0),
447 heap_(NULL), 448 heap_(NULL),
448 object_store_(NULL), 449 object_store_(NULL),
449 top_exit_frame_info_(0), 450 top_exit_frame_info_(0),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 metrics_list_head_(NULL), 489 metrics_list_head_(NULL),
489 next_(NULL), 490 next_(NULL),
490 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS) 491 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_INITIALIZERS)
491 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT) 492 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_INIT)
492 reusable_handles_() { 493 reusable_handles_() {
493 set_vm_tag(VMTag::kIdleTagId); 494 set_vm_tag(VMTag::kIdleTagId);
494 set_user_tag(UserTags::kDefaultUserTag); 495 set_user_tag(UserTags::kDefaultUserTag);
495 } 496 }
496 497
497 Isolate::Isolate(Isolate* original) 498 Isolate::Isolate(Isolate* original)
498 : store_buffer_(true), 499 : vm_tag_(0),
500 store_buffer_(true),
499 class_table_(original->class_table()), 501 class_table_(original->class_table()),
500 message_notify_callback_(NULL), 502 message_notify_callback_(NULL),
501 name_(NULL), 503 name_(NULL),
502 start_time_(OS::GetCurrentTimeMicros()), 504 start_time_(OS::GetCurrentTimeMicros()),
503 main_port_(0), 505 main_port_(0),
504 pause_capability_(0), 506 pause_capability_(0),
505 terminate_capability_(0), 507 terminate_capability_(0),
506 heap_(NULL), 508 heap_(NULL),
507 object_store_(NULL), 509 object_store_(NULL),
508 top_exit_frame_info_(0), 510 top_exit_frame_info_(0),
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 serialized_message_, serialized_message_len_); 1631 serialized_message_, serialized_message_len_);
1630 } 1632 }
1631 1633
1632 1634
1633 void IsolateSpawnState::Cleanup() { 1635 void IsolateSpawnState::Cleanup() {
1634 SwitchIsolateScope switch_scope(I); 1636 SwitchIsolateScope switch_scope(I);
1635 Dart::ShutdownIsolate(); 1637 Dart::ShutdownIsolate();
1636 } 1638 }
1637 1639
1638 } // namespace dart 1640 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698