| 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/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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 TypeArguments::Handle(type_parameters()); | 1505 TypeArguments::Handle(type_parameters()); |
| 1506 const Type& signature_type = Type::Handle( | 1506 const Type& signature_type = Type::Handle( |
| 1507 Type::New(*this, signature_type_arguments, token_pos())); | 1507 Type::New(*this, signature_type_arguments, token_pos())); |
| 1508 | 1508 |
| 1509 // Return the still unfinalized signature type. | 1509 // Return the still unfinalized signature type. |
| 1510 ASSERT(!signature_type.IsFinalized()); | 1510 ASSERT(!signature_type.IsFinalized()); |
| 1511 return signature_type.raw(); | 1511 return signature_type.raw(); |
| 1512 } | 1512 } |
| 1513 | 1513 |
| 1514 | 1514 |
| 1515 RawType* Class::RareType() const { |
| 1516 const Type& type = Type::Handle(Type::New( |
| 1517 *this, |
| 1518 Object::null_abstract_type_arguments(), |
| 1519 Scanner::kDummyTokenIndex)); |
| 1520 return Type::RawCast( |
| 1521 ClassFinalizer::FinalizeType(*this, type, ClassFinalizer::kCanonicalize)); |
| 1522 } |
| 1523 |
| 1524 |
| 1515 template <class FakeObject> | 1525 template <class FakeObject> |
| 1516 RawClass* Class::New() { | 1526 RawClass* Class::New() { |
| 1517 ASSERT(Object::class_class() != Class::null()); | 1527 ASSERT(Object::class_class() != Class::null()); |
| 1518 Class& result = Class::Handle(); | 1528 Class& result = Class::Handle(); |
| 1519 { | 1529 { |
| 1520 RawObject* raw = Object::Allocate(Class::kClassId, | 1530 RawObject* raw = Object::Allocate(Class::kClassId, |
| 1521 Class::InstanceSize(), | 1531 Class::InstanceSize(), |
| 1522 Heap::kOld); | 1532 Heap::kOld); |
| 1523 NoGCScope no_gc; | 1533 NoGCScope no_gc; |
| 1524 result ^= raw; | 1534 result ^= raw; |
| (...skipping 13350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14875 return "_MirrorReference"; | 14885 return "_MirrorReference"; |
| 14876 } | 14886 } |
| 14877 | 14887 |
| 14878 | 14888 |
| 14879 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 14889 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 14880 JSONObject jsobj(stream); | 14890 JSONObject jsobj(stream); |
| 14881 } | 14891 } |
| 14882 | 14892 |
| 14883 | 14893 |
| 14884 } // namespace dart | 14894 } // namespace dart |
| OLD | NEW |