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

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

Issue 1672853002: Move sticky_error_ from isolate to thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments addressed 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/compiler.cc ('k') | runtime/vm/dart_api_impl.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/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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // snapshot. 375 // snapshot.
376 if (!Dart::IsRunningPrecompiledCode()) { 376 if (!Dart::IsRunningPrecompiledCode()) {
377 MegamorphicCacheTable::InitMissHandler(I); 377 MegamorphicCacheTable::InitMissHandler(I);
378 } 378 }
379 const Code& miss_code = 379 const Code& miss_code =
380 Code::Handle(I->object_store()->megamorphic_miss_code()); 380 Code::Handle(I->object_store()->megamorphic_miss_code());
381 I->set_ic_miss_code(miss_code); 381 I->set_ic_miss_code(miss_code);
382 382
383 if (snapshot_buffer == NULL) { 383 if (snapshot_buffer == NULL) {
384 if (!I->object_store()->PreallocateObjects()) { 384 if (!I->object_store()->PreallocateObjects()) {
385 return I->object_store()->sticky_error(); 385 return T->sticky_error();
386 } 386 }
387 } 387 }
388 388
389 I->heap()->EnableGrowthControl(); 389 I->heap()->EnableGrowthControl();
390 I->set_init_callback_data(data); 390 I->set_init_callback_data(data);
391 Api::SetupAcquiredError(I); 391 Api::SetupAcquiredError(I);
392 if (FLAG_print_class_table) { 392 if (FLAG_print_class_table) {
393 I->class_table()->Print(); 393 I->class_table()->Print();
394 } 394 }
395 395
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 return predefined_handles_->handles_.IsValidScopedHandle(address); 467 return predefined_handles_->handles_.IsValidScopedHandle(address);
468 } 468 }
469 469
470 470
471 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 471 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
472 ASSERT(predefined_handles_ != NULL); 472 ASSERT(predefined_handles_ != NULL);
473 return predefined_handles_->api_handles_.IsValidHandle(handle); 473 return predefined_handles_->api_handles_.IsValidHandle(handle);
474 } 474 }
475 475
476 } // namespace dart 476 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698