Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_store.h" | 5 #include "vm/object_store.h" |
| 6 | 6 |
| 7 #include "vm/exceptions.h" | 7 #include "vm/exceptions.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 bool_class_(Class::null()), | 42 bool_class_(Class::null()), |
| 43 array_class_(Class::null()), | 43 array_class_(Class::null()), |
| 44 array_type_(Type::null()), | 44 array_type_(Type::null()), |
| 45 immutable_array_class_(Class::null()), | 45 immutable_array_class_(Class::null()), |
| 46 growable_object_array_class_(Class::null()), | 46 growable_object_array_class_(Class::null()), |
| 47 float32x4_class_(Class::null()), | 47 float32x4_class_(Class::null()), |
| 48 int32x4_class_(Class::null()), | 48 int32x4_class_(Class::null()), |
| 49 float64x2_class_(Class::null()), | 49 float64x2_class_(Class::null()), |
| 50 typed_data_classes_(Array::null()), | 50 typed_data_classes_(Array::null()), |
| 51 error_class_(Class::null()), | 51 error_class_(Class::null()), |
| 52 capability_class_(Class::null()), | |
|
turnidge
2014/04/22 18:40:45
Should you add the receive port and send port clas
Ivan Posva
2014/04/22 21:28:30
There is no need to follow that outdated pattern o
| |
| 52 stacktrace_class_(Class::null()), | 53 stacktrace_class_(Class::null()), |
| 53 jsregexp_class_(Class::null()), | 54 jsregexp_class_(Class::null()), |
| 54 weak_property_class_(Class::null()), | 55 weak_property_class_(Class::null()), |
| 55 mirror_reference_class_(Class::null()), | 56 mirror_reference_class_(Class::null()), |
| 56 user_tag_class_(Class::null()), | 57 user_tag_class_(Class::null()), |
| 57 symbol_table_(Array::null()), | 58 symbol_table_(Array::null()), |
| 58 canonical_type_arguments_(Array::null()), | 59 canonical_type_arguments_(Array::null()), |
| 59 async_library_(Library::null()), | 60 async_library_(Library::null()), |
| 60 builtin_library_(Library::null()), | 61 builtin_library_(Library::null()), |
| 61 core_library_(Library::null()), | 62 core_library_(Library::null()), |
| 62 isolate_library_(Library::null()), | 63 isolate_library_(Library::null()), |
| 63 math_library_(Library::null()), | 64 math_library_(Library::null()), |
| 64 mirrors_library_(Library::null()), | 65 mirrors_library_(Library::null()), |
| 65 native_wrappers_library_(Library::null()), | 66 native_wrappers_library_(Library::null()), |
| 66 root_library_(Library::null()), | 67 root_library_(Library::null()), |
| 67 typed_data_library_(Library::null()), | 68 typed_data_library_(Library::null()), |
| 68 libraries_(GrowableObjectArray::null()), | 69 libraries_(GrowableObjectArray::null()), |
| 69 pending_classes_(GrowableObjectArray::null()), | 70 pending_classes_(GrowableObjectArray::null()), |
| 70 pending_functions_(GrowableObjectArray::null()), | 71 pending_functions_(GrowableObjectArray::null()), |
| 71 sticky_error_(Error::null()), | 72 sticky_error_(Error::null()), |
| 72 unhandled_exception_handler_(String::null()), | 73 unhandled_exception_handler_(String::null()), |
| 73 empty_context_(Context::null()), | 74 empty_context_(Context::null()), |
| 74 stack_overflow_(Instance::null()), | 75 stack_overflow_(Instance::null()), |
| 75 out_of_memory_(Instance::null()), | 76 out_of_memory_(Instance::null()), |
| 76 preallocated_stack_trace_(Stacktrace::null()), | 77 preallocated_stack_trace_(Stacktrace::null()), |
| 77 receive_port_create_function_(Function::null()), | 78 lookup_port_handler_(Function::null()), |
| 78 lookup_receive_port_function_(Function::null()), | |
| 79 handle_message_function_(Function::null()) { | 79 handle_message_function_(Function::null()) { |
| 80 } | 80 } |
| 81 | 81 |
| 82 | 82 |
| 83 ObjectStore::~ObjectStore() { | 83 ObjectStore::~ObjectStore() { |
| 84 } | 84 } |
| 85 | 85 |
| 86 | 86 |
| 87 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 87 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
| 88 ASSERT(visitor != NULL); | 88 ASSERT(visitor != NULL); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 Stacktrace::Handle(Stacktrace::New(code_array, pc_offset_array)); | 142 Stacktrace::Handle(Stacktrace::New(code_array, pc_offset_array)); |
| 143 // Expansion of inlined functions requires additional memory at run time, | 143 // Expansion of inlined functions requires additional memory at run time, |
| 144 // avoid it. | 144 // avoid it. |
| 145 stack_trace.set_expand_inlined(false); | 145 stack_trace.set_expand_inlined(false); |
| 146 set_preallocated_stack_trace(stack_trace); | 146 set_preallocated_stack_trace(stack_trace); |
| 147 | 147 |
| 148 return true; | 148 return true; |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace dart | 151 } // namespace dart |
| OLD | NEW |