| 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 8919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8930 result.raw_ptr()->resolved_names_ = Object::empty_array().raw(); | 8930 result.raw_ptr()->resolved_names_ = Object::empty_array().raw(); |
| 8931 result.raw_ptr()->dictionary_ = Object::empty_array().raw(); | 8931 result.raw_ptr()->dictionary_ = Object::empty_array().raw(); |
| 8932 result.StorePointer(&result.raw_ptr()->metadata_, | 8932 result.StorePointer(&result.raw_ptr()->metadata_, |
| 8933 GrowableObjectArray::New(4, Heap::kOld)); | 8933 GrowableObjectArray::New(4, Heap::kOld)); |
| 8934 result.raw_ptr()->anonymous_classes_ = Object::empty_array().raw(); | 8934 result.raw_ptr()->anonymous_classes_ = Object::empty_array().raw(); |
| 8935 result.raw_ptr()->num_anonymous_ = 0; | 8935 result.raw_ptr()->num_anonymous_ = 0; |
| 8936 result.raw_ptr()->imports_ = Object::empty_array().raw(); | 8936 result.raw_ptr()->imports_ = Object::empty_array().raw(); |
| 8937 result.raw_ptr()->exports_ = Object::empty_array().raw(); | 8937 result.raw_ptr()->exports_ = Object::empty_array().raw(); |
| 8938 result.raw_ptr()->loaded_scripts_ = Array::null(); | 8938 result.raw_ptr()->loaded_scripts_ = Array::null(); |
| 8939 result.set_native_entry_resolver(NULL); | 8939 result.set_native_entry_resolver(NULL); |
| 8940 result.set_native_entry_symbol_resolver(NULL); |
| 8940 result.raw_ptr()->corelib_imported_ = true; | 8941 result.raw_ptr()->corelib_imported_ = true; |
| 8941 result.set_debuggable(false); | 8942 result.set_debuggable(false); |
| 8942 result.raw_ptr()->load_state_ = RawLibrary::kAllocated; | 8943 result.raw_ptr()->load_state_ = RawLibrary::kAllocated; |
| 8943 result.raw_ptr()->index_ = -1; | 8944 result.raw_ptr()->index_ = -1; |
| 8944 const intptr_t kInitialNameCacheSize = 64; | 8945 const intptr_t kInitialNameCacheSize = 64; |
| 8945 result.InitResolvedNamesCache(kInitialNameCacheSize); | 8946 result.InitResolvedNamesCache(kInitialNameCacheSize); |
| 8946 result.InitClassDictionary(); | 8947 result.InitClassDictionary(); |
| 8947 result.InitImportList(); | 8948 result.InitImportList(); |
| 8948 result.AllocatePrivateKey(); | 8949 result.AllocatePrivateKey(); |
| 8949 if (import_core_lib) { | 8950 if (import_core_lib) { |
| (...skipping 9312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18262 return "_MirrorReference"; | 18263 return "_MirrorReference"; |
| 18263 } | 18264 } |
| 18264 | 18265 |
| 18265 | 18266 |
| 18266 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 18267 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 18267 Instance::PrintToJSONStream(stream, ref); | 18268 Instance::PrintToJSONStream(stream, ref); |
| 18268 } | 18269 } |
| 18269 | 18270 |
| 18270 | 18271 |
| 18271 } // namespace dart | 18272 } // namespace dart |
| OLD | NEW |