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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 libraries_(GrowableObjectArray::null()), | 65 libraries_(GrowableObjectArray::null()), |
66 pending_classes_(GrowableObjectArray::null()), | 66 pending_classes_(GrowableObjectArray::null()), |
67 pending_functions_(GrowableObjectArray::null()), | 67 pending_functions_(GrowableObjectArray::null()), |
68 sticky_error_(Error::null()), | 68 sticky_error_(Error::null()), |
69 unhandled_exception_handler_(String::null()), | 69 unhandled_exception_handler_(String::null()), |
70 empty_context_(Context::null()), | 70 empty_context_(Context::null()), |
71 stack_overflow_(Instance::null()), | 71 stack_overflow_(Instance::null()), |
72 out_of_memory_(Instance::null()), | 72 out_of_memory_(Instance::null()), |
73 preallocated_stack_trace_(Stacktrace::null()), | 73 preallocated_stack_trace_(Stacktrace::null()), |
74 lookup_port_handler_(Function::null()), | 74 lookup_port_handler_(Function::null()), |
75 handle_message_function_(Function::null()) { | 75 handle_message_function_(Function::null()), |
| 76 default_tag_(UserTag::null()) { |
76 } | 77 } |
77 | 78 |
78 | 79 |
79 ObjectStore::~ObjectStore() { | 80 ObjectStore::~ObjectStore() { |
80 } | 81 } |
81 | 82 |
82 | 83 |
83 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 84 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
84 ASSERT(visitor != NULL); | 85 ASSERT(visitor != NULL); |
85 visitor->VisitPointers(from(), to()); | 86 visitor->VisitPointers(from(), to()); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 Stacktrace::Handle(Stacktrace::New(code_array, pc_offset_array)); | 139 Stacktrace::Handle(Stacktrace::New(code_array, pc_offset_array)); |
139 // Expansion of inlined functions requires additional memory at run time, | 140 // Expansion of inlined functions requires additional memory at run time, |
140 // avoid it. | 141 // avoid it. |
141 stack_trace.set_expand_inlined(false); | 142 stack_trace.set_expand_inlined(false); |
142 set_preallocated_stack_trace(stack_trace); | 143 set_preallocated_stack_trace(stack_trace); |
143 | 144 |
144 return true; | 145 return true; |
145 } | 146 } |
146 | 147 |
147 } // namespace dart | 148 } // namespace dart |
OLD | NEW |