OLD | NEW |
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/native_entry.h" | 5 #include "vm/native_entry.h" |
6 #include "vm/object.h" | 6 #include "vm/object.h" |
7 #include "vm/object_store.h" | 7 #include "vm/object_store.h" |
8 #include "vm/snapshot.h" | 8 #include "vm/snapshot.h" |
9 #include "vm/stub_code.h" | 9 #include "vm/stub_code.h" |
10 #include "vm/symbols.h" | 10 #include "vm/symbols.h" |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1476 bool is_implicit = reader->Read<bool>(); | 1476 bool is_implicit = reader->Read<bool>(); |
1477 if (is_implicit) { | 1477 if (is_implicit) { |
1478 ContextScope& context_scope = ContextScope::ZoneHandle(reader->zone()); | 1478 ContextScope& context_scope = ContextScope::ZoneHandle(reader->zone()); |
1479 context_scope = ContextScope::New(1, true); | 1479 context_scope = ContextScope::New(1, true); |
1480 reader->AddBackRef(object_id, &context_scope, kIsDeserialized); | 1480 reader->AddBackRef(object_id, &context_scope, kIsDeserialized); |
1481 | 1481 |
1482 *reader->TypeHandle() ^= reader->ReadObjectImpl(kAsInlinedObject); | 1482 *reader->TypeHandle() ^= reader->ReadObjectImpl(kAsInlinedObject); |
1483 | 1483 |
1484 // Create a descriptor for 'this' variable. | 1484 // Create a descriptor for 'this' variable. |
1485 context_scope.SetTokenIndexAt(0, TokenPosition::kMinSource); | 1485 context_scope.SetTokenIndexAt(0, TokenPosition::kMinSource); |
| 1486 context_scope.SetDeclarationTokenIndexAt(0, TokenPosition::kMinSource); |
1486 context_scope.SetNameAt(0, Symbols::This()); | 1487 context_scope.SetNameAt(0, Symbols::This()); |
1487 context_scope.SetIsFinalAt(0, true); | 1488 context_scope.SetIsFinalAt(0, true); |
1488 context_scope.SetIsConstAt(0, false); | 1489 context_scope.SetIsConstAt(0, false); |
1489 context_scope.SetTypeAt(0, *reader->TypeHandle()); | 1490 context_scope.SetTypeAt(0, *reader->TypeHandle()); |
1490 context_scope.SetContextIndexAt(0, 0); | 1491 context_scope.SetContextIndexAt(0, 0); |
1491 context_scope.SetContextLevelAt(0, 0); | 1492 context_scope.SetContextLevelAt(0, 0); |
1492 return context_scope.raw(); | 1493 return context_scope.raw(); |
1493 } | 1494 } |
1494 UNREACHABLE(); | 1495 UNREACHABLE(); |
1495 return NULL; | 1496 return NULL; |
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3071 // We do not allow objects with native fields in an isolate message. | 3072 // We do not allow objects with native fields in an isolate message. |
3072 writer->SetWriteException(Exceptions::kArgument, | 3073 writer->SetWriteException(Exceptions::kArgument, |
3073 "Illegal argument in isolate message" | 3074 "Illegal argument in isolate message" |
3074 " : (object is a UserTag)"); | 3075 " : (object is a UserTag)"); |
3075 } else { | 3076 } else { |
3076 UNREACHABLE(); | 3077 UNREACHABLE(); |
3077 } | 3078 } |
3078 } | 3079 } |
3079 | 3080 |
3080 } // namespace dart | 3081 } // namespace dart |
OLD | NEW |