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

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

Issue 195563002: Disables TargetCPUFeatures::Cleanup(). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « no previous file | 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/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/code_observers.h" 7 #include "vm/code_observers.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/dart_api_state.h" 9 #include "vm/dart_api_state.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // Set the VM isolate as current isolate. 169 // Set the VM isolate as current isolate.
170 Isolate::SetCurrent(vm_isolate_); 170 Isolate::SetCurrent(vm_isolate_);
171 171
172 // There is a planned and known asymmetry here: We exit one scope for the VM 172 // There is a planned and known asymmetry here: We exit one scope for the VM
173 // isolate to account for the scope that was entered in Dart_InitOnce. 173 // isolate to account for the scope that was entered in Dart_InitOnce.
174 Dart_ExitScope(); 174 Dart_ExitScope();
175 175
176 ShutdownIsolate(); 176 ShutdownIsolate();
177 vm_isolate_ = NULL; 177 vm_isolate_ = NULL;
178
179 TargetCPUFeatures::Cleanup();
178 #endif 180 #endif
179 181
180 Profiler::Shutdown(); 182 Profiler::Shutdown();
181 CodeObservers::DeleteAll(); 183 CodeObservers::DeleteAll();
182 TargetCPUFeatures::Cleanup();
183 184
184 return NULL; 185 return NULL;
185 } 186 }
186 187
187 188
188 Isolate* Dart::CreateIsolate(const char* name_prefix) { 189 Isolate* Dart::CreateIsolate(const char* name_prefix) {
189 // Create a new isolate. 190 // Create a new isolate.
190 Isolate* isolate = Isolate::Init(name_prefix); 191 Isolate* isolate = Isolate::Init(name_prefix);
191 ASSERT(isolate != NULL); 192 ASSERT(isolate != NULL);
192 return isolate; 193 return isolate;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return predefined_handles_->handles_.AllocateScopedHandle(); 275 return predefined_handles_->handles_.AllocateScopedHandle();
275 } 276 }
276 277
277 278
278 bool Dart::IsReadOnlyHandle(uword address) { 279 bool Dart::IsReadOnlyHandle(uword address) {
279 ASSERT(predefined_handles_ != NULL); 280 ASSERT(predefined_handles_ != NULL);
280 return predefined_handles_->handles_.IsValidScopedHandle(address); 281 return predefined_handles_->handles_.IsValidScopedHandle(address);
281 } 282 }
282 283
283 } // namespace dart 284 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698