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