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

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

Issue 1722733002: In background compilation make a copy of Field in order to freeze its state (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: s Created 4 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/intermediate_language_x64.cc ('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 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 } 2075 }
2076 2076
2077 2077
2078 void Isolate::set_registered_service_extension_handlers( 2078 void Isolate::set_registered_service_extension_handlers(
2079 const GrowableObjectArray& value) { 2079 const GrowableObjectArray& value) {
2080 registered_service_extension_handlers_ = value.raw(); 2080 registered_service_extension_handlers_ = value.raw();
2081 } 2081 }
2082 2082
2083 2083
2084 void Isolate::AddDeoptimizingBoxedField(const Field& field) { 2084 void Isolate::AddDeoptimizingBoxedField(const Field& field) {
2085 ASSERT(field.IsOriginal());
2085 MonitorLocker ml(boxed_field_list_monitor_); 2086 MonitorLocker ml(boxed_field_list_monitor_);
2086 if (boxed_field_list_ == GrowableObjectArray::null()) { 2087 if (boxed_field_list_ == GrowableObjectArray::null()) {
2087 boxed_field_list_ = GrowableObjectArray::New(Heap::kOld); 2088 boxed_field_list_ = GrowableObjectArray::New(Heap::kOld);
2088 } 2089 }
2089 const GrowableObjectArray& array = 2090 const GrowableObjectArray& array =
2090 GrowableObjectArray::Handle(boxed_field_list_); 2091 GrowableObjectArray::Handle(boxed_field_list_);
2091 array.Add(field, Heap::kOld); 2092 array.Add(field, Heap::kOld);
2092 } 2093 }
2093 2094
2094 2095
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 void IsolateSpawnState::DecrementSpawnCount() { 2810 void IsolateSpawnState::DecrementSpawnCount() {
2810 ASSERT(spawn_count_monitor_ != NULL); 2811 ASSERT(spawn_count_monitor_ != NULL);
2811 ASSERT(spawn_count_ != NULL); 2812 ASSERT(spawn_count_ != NULL);
2812 MonitorLocker ml(spawn_count_monitor_); 2813 MonitorLocker ml(spawn_count_monitor_);
2813 ASSERT(*spawn_count_ > 0); 2814 ASSERT(*spawn_count_ > 0);
2814 *spawn_count_ = *spawn_count_ - 1; 2815 *spawn_count_ = *spawn_count_ - 1;
2815 ml.Notify(); 2816 ml.Notify();
2816 } 2817 }
2817 2818
2818 } // namespace dart 2819 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698