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

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

Issue 634603002: Await always waits (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/object_store.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 field_name = Symbols::New("cid"#clazz); \ 1450 field_name = Symbols::New("cid"#clazz); \
1451 field = Field::New(field_name, true, false, true, false, cls, 0); \ 1451 field = Field::New(field_name, true, false, true, false, cls, 0); \
1452 value = Smi::New(k##clazz##Cid); \ 1452 value = Smi::New(k##clazz##Cid); \
1453 field.set_value(value); \ 1453 field.set_value(value); \
1454 field.set_type(Type::Handle(Type::IntType())); \ 1454 field.set_type(Type::Handle(Type::IntType())); \
1455 cls.AddField(field); \ 1455 cls.AddField(field); \
1456 1456
1457 CLASS_LIST_WITH_NULL(ADD_SET_FIELD) 1457 CLASS_LIST_WITH_NULL(ADD_SET_FIELD)
1458 #undef ADD_SET_FIELD 1458 #undef ADD_SET_FIELD
1459 1459
1460 object_store->InitAsyncObjects();
1461
1460 return Error::null(); 1462 return Error::null();
1461 } 1463 }
1462 1464
1463 1465
1464 void Object::InitFromSnapshot(Isolate* isolate) { 1466 void Object::InitFromSnapshot(Isolate* isolate) {
1465 TIMERSCOPE(isolate, time_bootstrap); 1467 TIMERSCOPE(isolate, time_bootstrap);
1466 ObjectStore* object_store = isolate->object_store(); 1468 ObjectStore* object_store = isolate->object_store();
1467 1469
1468 Class& cls = Class::Handle(); 1470 Class& cls = Class::Handle();
1469 1471
(...skipping 18795 matching lines...) Expand 10 before | Expand all | Expand 10 after
20265 return tag_label.ToCString(); 20267 return tag_label.ToCString();
20266 } 20268 }
20267 20269
20268 20270
20269 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20271 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20270 Instance::PrintJSONImpl(stream, ref); 20272 Instance::PrintJSONImpl(stream, ref);
20271 } 20273 }
20272 20274
20273 20275
20274 } // namespace dart 20276 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698