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

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

Issue 2683633005: Add exception handler cache to isolate (Closed)
Patch Set: s/HandlerInfo/ExceptionHandlerInfo Created 3 years, 10 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/isolate.h ('k') | runtime/vm/object.h » ('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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 spawn_count_(0), 838 spawn_count_(0),
839 #define ISOLATE_METRIC_CONSTRUCTORS(type, variable, name, unit) \ 839 #define ISOLATE_METRIC_CONSTRUCTORS(type, variable, name, unit) \
840 metric_##variable##_(), 840 metric_##variable##_(),
841 ISOLATE_METRIC_LIST(ISOLATE_METRIC_CONSTRUCTORS) 841 ISOLATE_METRIC_LIST(ISOLATE_METRIC_CONSTRUCTORS)
842 #undef ISOLATE_METRIC_CONSTRUCTORS 842 #undef ISOLATE_METRIC_CONSTRUCTORS
843 has_attempted_reload_(false), 843 has_attempted_reload_(false),
844 no_reload_scope_depth_(0), 844 no_reload_scope_depth_(0),
845 reload_every_n_stack_overflow_checks_(FLAG_reload_every), 845 reload_every_n_stack_overflow_checks_(FLAG_reload_every),
846 reload_context_(NULL), 846 reload_context_(NULL),
847 last_reload_timestamp_(OS::GetCurrentTimeMillis()), 847 last_reload_timestamp_(OS::GetCurrentTimeMillis()),
848 should_pause_post_service_request_(false) { 848 should_pause_post_service_request_(false),
849 handler_info_cache_() {
849 NOT_IN_PRODUCT(FlagsCopyFrom(api_flags)); 850 NOT_IN_PRODUCT(FlagsCopyFrom(api_flags));
850 // TODO(asiva): A Thread is not available here, need to figure out 851 // TODO(asiva): A Thread is not available here, need to figure out
851 // how the vm_tag (kEmbedderTagId) can be set, these tags need to 852 // how the vm_tag (kEmbedderTagId) can be set, these tags need to
852 // move to the OSThread structure. 853 // move to the OSThread structure.
853 set_user_tag(UserTags::kDefaultUserTag); 854 set_user_tag(UserTags::kDefaultUserTag);
854 } 855 }
855 856
856 #undef REUSABLE_HANDLE_SCOPE_INIT 857 #undef REUSABLE_HANDLE_SCOPE_INIT
857 #undef REUSABLE_HANDLE_INITIALIZERS 858 #undef REUSABLE_HANDLE_INITIALIZERS
858 859
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 void IsolateSpawnState::DecrementSpawnCount() { 2946 void IsolateSpawnState::DecrementSpawnCount() {
2946 ASSERT(spawn_count_monitor_ != NULL); 2947 ASSERT(spawn_count_monitor_ != NULL);
2947 ASSERT(spawn_count_ != NULL); 2948 ASSERT(spawn_count_ != NULL);
2948 MonitorLocker ml(spawn_count_monitor_); 2949 MonitorLocker ml(spawn_count_monitor_);
2949 ASSERT(*spawn_count_ > 0); 2950 ASSERT(*spawn_count_ > 0);
2950 *spawn_count_ = *spawn_count_ - 1; 2951 *spawn_count_ = *spawn_count_ - 1;
2951 ml.Notify(); 2952 ml.Notify();
2952 } 2953 }
2953 2954
2954 } // namespace dart 2955 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698