Chromium Code Reviews| 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 Type& type = Type::Handle(Type::New(*this, | |
|
regis
2013/09/12 00:30:06
const Type& type ...
| |
| 1517 Object::null_abstract_type_arguments(), | |
| 1518 Scanner::kDummyTokenIndex)); | |
| 1519 return Type::RawCast( | |
| 1520 ClassFinalizer::FinalizeType(*this, type, ClassFinalizer::kCanonicalize)); | |
| 1521 } | |
| 1522 | |
| 1523 | |
| 1515 template <class FakeObject> | 1524 template <class FakeObject> |
| 1516 RawClass* Class::New() { | 1525 RawClass* Class::New() { |
| 1517 ASSERT(Object::class_class() != Class::null()); | 1526 ASSERT(Object::class_class() != Class::null()); |
| 1518 Class& result = Class::Handle(); | 1527 Class& result = Class::Handle(); |
| 1519 { | 1528 { |
| 1520 RawObject* raw = Object::Allocate(Class::kClassId, | 1529 RawObject* raw = Object::Allocate(Class::kClassId, |
| 1521 Class::InstanceSize(), | 1530 Class::InstanceSize(), |
| 1522 Heap::kOld); | 1531 Heap::kOld); |
| 1523 NoGCScope no_gc; | 1532 NoGCScope no_gc; |
| 1524 result ^= raw; | 1533 result ^= raw; |
| (...skipping 13350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14875 return "_MirrorReference"; | 14884 return "_MirrorReference"; |
| 14876 } | 14885 } |
| 14877 | 14886 |
| 14878 | 14887 |
| 14879 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 14888 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 14880 JSONObject jsobj(stream); | 14889 JSONObject jsobj(stream); |
| 14881 } | 14890 } |
| 14882 | 14891 |
| 14883 | 14892 |
| 14884 } // namespace dart | 14893 } // namespace dart |
| OLD | NEW |