| 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/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
| (...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 } | 1907 } |
| 1908 | 1908 |
| 1909 | 1909 |
| 1910 void Class::set_allocation_stub(const Code& value) const { | 1910 void Class::set_allocation_stub(const Code& value) const { |
| 1911 ASSERT(!value.IsNull()); | 1911 ASSERT(!value.IsNull()); |
| 1912 ASSERT(raw_ptr()->allocation_stub_ == Code::null()); | 1912 ASSERT(raw_ptr()->allocation_stub_ == Code::null()); |
| 1913 StorePointer(&raw_ptr()->allocation_stub_, value.raw()); | 1913 StorePointer(&raw_ptr()->allocation_stub_, value.raw()); |
| 1914 } | 1914 } |
| 1915 | 1915 |
| 1916 | 1916 |
| 1917 bool Class::IsObjectClass() const { | |
| 1918 return id() == kInstanceCid; | |
| 1919 } | |
| 1920 | |
| 1921 | |
| 1922 bool Class::IsCanonicalSignatureClass() const { | 1917 bool Class::IsCanonicalSignatureClass() const { |
| 1923 const Function& function = Function::Handle(signature_function()); | 1918 const Function& function = Function::Handle(signature_function()); |
| 1924 return (!function.IsNull() && (function.signature_class() == raw())); | 1919 return (!function.IsNull() && (function.signature_class() == raw())); |
| 1925 } | 1920 } |
| 1926 | 1921 |
| 1927 | 1922 |
| 1928 // If test_kind == kIsSubtypeOf, checks if type S is a subtype of type T. | 1923 // If test_kind == kIsSubtypeOf, checks if type S is a subtype of type T. |
| 1929 // If test_kind == kIsMoreSpecificThan, checks if S is more specific than T. | 1924 // If test_kind == kIsMoreSpecificThan, checks if S is more specific than T. |
| 1930 // Type S is specified by this class parameterized with 'type_arguments', and | 1925 // Type S is specified by this class parameterized with 'type_arguments', and |
| 1931 // type T by class 'other' parameterized with 'other_type_arguments'. | 1926 // type T by class 'other' parameterized with 'other_type_arguments'. |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2695 RawType* Type::BoolInterface() { | 2690 RawType* Type::BoolInterface() { |
| 2696 return Isolate::Current()->object_store()->bool_interface(); | 2691 return Isolate::Current()->object_store()->bool_interface(); |
| 2697 } | 2692 } |
| 2698 | 2693 |
| 2699 | 2694 |
| 2700 RawType* Type::IntInterface() { | 2695 RawType* Type::IntInterface() { |
| 2701 return Isolate::Current()->object_store()->int_interface(); | 2696 return Isolate::Current()->object_store()->int_interface(); |
| 2702 } | 2697 } |
| 2703 | 2698 |
| 2704 | 2699 |
| 2700 RawType* Type::SmiType() { |
| 2701 return Isolate::Current()->object_store()->smi_type(); |
| 2702 } |
| 2703 |
| 2704 |
| 2705 RawType* Type::MintType() { |
| 2706 return Isolate::Current()->object_store()->mint_type(); |
| 2707 } |
| 2708 |
| 2709 |
| 2705 RawType* Type::DoubleInterface() { | 2710 RawType* Type::DoubleInterface() { |
| 2706 return Isolate::Current()->object_store()->double_interface(); | 2711 return Isolate::Current()->object_store()->double_interface(); |
| 2707 } | 2712 } |
| 2708 | 2713 |
| 2709 | 2714 |
| 2710 RawType* Type::Number() { | 2715 RawType* Type::Number() { |
| 2711 return Isolate::Current()->object_store()->number_type(); | 2716 return Isolate::Current()->object_store()->number_type(); |
| 2712 } | 2717 } |
| 2713 | 2718 |
| 2714 | 2719 |
| (...skipping 8458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11173 } | 11178 } |
| 11174 return result.raw(); | 11179 return result.raw(); |
| 11175 } | 11180 } |
| 11176 | 11181 |
| 11177 | 11182 |
| 11178 const char* WeakProperty::ToCString() const { | 11183 const char* WeakProperty::ToCString() const { |
| 11179 return "_WeakProperty"; | 11184 return "_WeakProperty"; |
| 11180 } | 11185 } |
| 11181 | 11186 |
| 11182 } // namespace dart | 11187 } // namespace dart |
| OLD | NEW |