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

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

Issue 2465793003: Reland "Recognize and optimize a.runtimeType == b.runtimeType pattern." (Closed)
Patch Set: Address Ryan's comment Created 4 years, 1 month 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/isolate.h ('k') | runtime/vm/jit_optimizer.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) 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 "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/text_buffer.h" 10 #include "platform/text_buffer.h"
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 object##_handle_(NULL), 770 object##_handle_(NULL),
771 771
772 // TODO(srdjan): Some Isolate monitors can be shared. Replace their usage with 772 // TODO(srdjan): Some Isolate monitors can be shared. Replace their usage with
773 // that shared monitor. 773 // that shared monitor.
774 Isolate::Isolate(const Dart_IsolateFlags& api_flags) 774 Isolate::Isolate(const Dart_IsolateFlags& api_flags)
775 : store_buffer_(new StoreBuffer()), 775 : store_buffer_(new StoreBuffer()),
776 heap_(NULL), 776 heap_(NULL),
777 user_tag_(0), 777 user_tag_(0),
778 current_tag_(UserTag::null()), 778 current_tag_(UserTag::null()),
779 default_tag_(UserTag::null()), 779 default_tag_(UserTag::null()),
780 object_store_(NULL),
780 class_table_(), 781 class_table_(),
781 single_step_(false), 782 single_step_(false),
782 thread_registry_(new ThreadRegistry()), 783 thread_registry_(new ThreadRegistry()),
783 safepoint_handler_(new SafepointHandler(this)), 784 safepoint_handler_(new SafepointHandler(this)),
784 message_notify_callback_(NULL), 785 message_notify_callback_(NULL),
785 name_(NULL), 786 name_(NULL),
786 debugger_name_(NULL), 787 debugger_name_(NULL),
787 start_time_(OS::GetCurrentTimeMicros()), 788 start_time_(OS::GetCurrentTimeMicros()),
788 main_port_(0), 789 main_port_(0),
789 origin_id_(0), 790 origin_id_(0),
790 pause_capability_(0), 791 pause_capability_(0),
791 terminate_capability_(0), 792 terminate_capability_(0),
792 errors_fatal_(true), 793 errors_fatal_(true),
793 object_store_(NULL),
794 top_exit_frame_info_(0), 794 top_exit_frame_info_(0),
795 init_callback_data_(NULL), 795 init_callback_data_(NULL),
796 environment_callback_(NULL), 796 environment_callback_(NULL),
797 library_tag_handler_(NULL), 797 library_tag_handler_(NULL),
798 api_state_(NULL), 798 api_state_(NULL),
799 debugger_(NULL), 799 debugger_(NULL),
800 resume_request_(false), 800 resume_request_(false),
801 last_resume_timestamp_(OS::GetCurrentTimeMillis()), 801 last_resume_timestamp_(OS::GetCurrentTimeMillis()),
802 has_compiled_code_(false), 802 has_compiled_code_(false),
803 random_(), 803 random_(),
(...skipping 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2967 void IsolateSpawnState::DecrementSpawnCount() { 2967 void IsolateSpawnState::DecrementSpawnCount() {
2968 ASSERT(spawn_count_monitor_ != NULL); 2968 ASSERT(spawn_count_monitor_ != NULL);
2969 ASSERT(spawn_count_ != NULL); 2969 ASSERT(spawn_count_ != NULL);
2970 MonitorLocker ml(spawn_count_monitor_); 2970 MonitorLocker ml(spawn_count_monitor_);
2971 ASSERT(*spawn_count_ > 0); 2971 ASSERT(*spawn_count_ > 0);
2972 *spawn_count_ = *spawn_count_ - 1; 2972 *spawn_count_ = *spawn_count_ - 1;
2973 ml.Notify(); 2973 ml.Notify();
2974 } 2974 }
2975 2975
2976 } // namespace dart 2976 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698