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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 ASSERT(this->out_of_memory() != Instance::null()); | 103 ASSERT(this->out_of_memory() != Instance::null()); |
104 ASSERT(this->preallocated_stack_trace() != Stacktrace::null()); | 104 ASSERT(this->preallocated_stack_trace() != Stacktrace::null()); |
105 return true; | 105 return true; |
106 } | 106 } |
107 ASSERT(this->stack_overflow() == Instance::null()); | 107 ASSERT(this->stack_overflow() == Instance::null()); |
108 ASSERT(this->out_of_memory() == Instance::null()); | 108 ASSERT(this->out_of_memory() == Instance::null()); |
109 ASSERT(this->preallocated_stack_trace() == Stacktrace::null()); | 109 ASSERT(this->preallocated_stack_trace() == Stacktrace::null()); |
110 | 110 |
111 ASSERT(this->pending_functions() == GrowableObjectArray::null()); | 111 ASSERT(this->pending_functions() == GrowableObjectArray::null()); |
112 this->pending_functions_ = GrowableObjectArray::New(); | 112 this->pending_functions_ = GrowableObjectArray::New(); |
| 113 this->pending_deferred_loads_ = GrowableObjectArray::New(); |
113 | 114 |
114 this->resume_capabilities_ = GrowableObjectArray::New(); | 115 this->resume_capabilities_ = GrowableObjectArray::New(); |
115 | 116 |
116 Object& result = Object::Handle(); | 117 Object& result = Object::Handle(); |
117 const Library& library = Library::Handle(Library::CoreLibrary()); | 118 const Library& library = Library::Handle(Library::CoreLibrary()); |
118 | 119 |
119 result = DartLibraryCalls::InstanceCreate(library, | 120 result = DartLibraryCalls::InstanceCreate(library, |
120 Symbols::StackOverflowError(), | 121 Symbols::StackOverflowError(), |
121 Symbols::Dot(), | 122 Symbols::Dot(), |
122 Object::empty_array()); | 123 Object::empty_array()); |
(...skipping 27 matching lines...) Expand all Loading... |
150 Stacktrace::Handle(Stacktrace::New(code_array, pc_offset_array)); | 151 Stacktrace::Handle(Stacktrace::New(code_array, pc_offset_array)); |
151 // Expansion of inlined functions requires additional memory at run time, | 152 // Expansion of inlined functions requires additional memory at run time, |
152 // avoid it. | 153 // avoid it. |
153 stack_trace.set_expand_inlined(false); | 154 stack_trace.set_expand_inlined(false); |
154 set_preallocated_stack_trace(stack_trace); | 155 set_preallocated_stack_trace(stack_trace); |
155 | 156 |
156 return true; | 157 return true; |
157 } | 158 } |
158 | 159 |
159 } // namespace dart | 160 } // namespace dart |
OLD | NEW |