| 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 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 const Type& type = Type::Handle(Type::New( | 1628 const Type& type = Type::Handle(Type::New( |
| 1629 *this, | 1629 *this, |
| 1630 Object::null_abstract_type_arguments(), | 1630 Object::null_abstract_type_arguments(), |
| 1631 Scanner::kDummyTokenIndex)); | 1631 Scanner::kDummyTokenIndex)); |
| 1632 return ClassFinalizer::FinalizeType(*this, | 1632 return ClassFinalizer::FinalizeType(*this, |
| 1633 type, | 1633 type, |
| 1634 ClassFinalizer::kCanonicalize); | 1634 ClassFinalizer::kCanonicalize); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 | 1637 |
| 1638 RawAbstractType* Class::DeclarationType() const { |
| 1639 const TypeArguments& args = TypeArguments::Handle(type_parameters()); |
| 1640 const Type& type = Type::Handle(Type::New( |
| 1641 *this, |
| 1642 args, |
| 1643 Scanner::kDummyTokenIndex)); |
| 1644 return ClassFinalizer::FinalizeType(*this, |
| 1645 type, |
| 1646 ClassFinalizer::kCanonicalize); |
| 1647 } |
| 1648 |
| 1649 |
| 1638 template <class FakeObject> | 1650 template <class FakeObject> |
| 1639 RawClass* Class::New() { | 1651 RawClass* Class::New() { |
| 1640 ASSERT(Object::class_class() != Class::null()); | 1652 ASSERT(Object::class_class() != Class::null()); |
| 1641 Class& result = Class::Handle(); | 1653 Class& result = Class::Handle(); |
| 1642 { | 1654 { |
| 1643 RawObject* raw = Object::Allocate(Class::kClassId, | 1655 RawObject* raw = Object::Allocate(Class::kClassId, |
| 1644 Class::InstanceSize(), | 1656 Class::InstanceSize(), |
| 1645 Heap::kOld); | 1657 Heap::kOld); |
| 1646 NoGCScope no_gc; | 1658 NoGCScope no_gc; |
| 1647 result ^= raw; | 1659 result ^= raw; |
| (...skipping 13905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15553 return "_MirrorReference"; | 15565 return "_MirrorReference"; |
| 15554 } | 15566 } |
| 15555 | 15567 |
| 15556 | 15568 |
| 15557 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15569 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 15558 JSONObject jsobj(stream); | 15570 JSONObject jsobj(stream); |
| 15559 } | 15571 } |
| 15560 | 15572 |
| 15561 | 15573 |
| 15562 } // namespace dart | 15574 } // namespace dart |
| OLD | NEW |