| 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 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 TypeArguments::Handle(type_parameters()); | 1531 TypeArguments::Handle(type_parameters()); |
| 1532 const Type& signature_type = Type::Handle( | 1532 const Type& signature_type = Type::Handle( |
| 1533 Type::New(*this, signature_type_arguments, token_pos())); | 1533 Type::New(*this, signature_type_arguments, token_pos())); |
| 1534 | 1534 |
| 1535 // Return the still unfinalized signature type. | 1535 // Return the still unfinalized signature type. |
| 1536 ASSERT(!signature_type.IsFinalized()); | 1536 ASSERT(!signature_type.IsFinalized()); |
| 1537 return signature_type.raw(); | 1537 return signature_type.raw(); |
| 1538 } | 1538 } |
| 1539 | 1539 |
| 1540 | 1540 |
| 1541 RawType* Class::RareType() const { | 1541 RawAbstractType* Class::RareType() const { |
| 1542 const Type& type = Type::Handle(Type::New( | 1542 const Type& type = Type::Handle(Type::New( |
| 1543 *this, | 1543 *this, |
| 1544 Object::null_abstract_type_arguments(), | 1544 Object::null_abstract_type_arguments(), |
| 1545 Scanner::kDummyTokenIndex)); | 1545 Scanner::kDummyTokenIndex)); |
| 1546 return Type::RawCast( | 1546 return ClassFinalizer::FinalizeType(*this, |
| 1547 ClassFinalizer::FinalizeType(*this, type, ClassFinalizer::kCanonicalize)); | 1547 type, |
| 1548 ClassFinalizer::kCanonicalize); |
| 1548 } | 1549 } |
| 1549 | 1550 |
| 1550 | 1551 |
| 1551 template <class FakeObject> | 1552 template <class FakeObject> |
| 1552 RawClass* Class::New() { | 1553 RawClass* Class::New() { |
| 1553 ASSERT(Object::class_class() != Class::null()); | 1554 ASSERT(Object::class_class() != Class::null()); |
| 1554 Class& result = Class::Handle(); | 1555 Class& result = Class::Handle(); |
| 1555 { | 1556 { |
| 1556 RawObject* raw = Object::Allocate(Class::kClassId, | 1557 RawObject* raw = Object::Allocate(Class::kClassId, |
| 1557 Class::InstanceSize(), | 1558 Class::InstanceSize(), |
| (...skipping 13789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15347 return "_MirrorReference"; | 15348 return "_MirrorReference"; |
| 15348 } | 15349 } |
| 15349 | 15350 |
| 15350 | 15351 |
| 15351 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15352 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 15352 JSONObject jsobj(stream); | 15353 JSONObject jsobj(stream); |
| 15353 } | 15354 } |
| 15354 | 15355 |
| 15355 | 15356 |
| 15356 } // namespace dart | 15357 } // namespace dart |
| OLD | NEW |