Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: runtime/vm/object_store.cc

Issue 881373002: Implemented more of the Isolate API (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 mirrors_library_(Library::null()), 68 mirrors_library_(Library::null()),
69 native_wrappers_library_(Library::null()), 69 native_wrappers_library_(Library::null()),
70 root_library_(Library::null()), 70 root_library_(Library::null()),
71 typed_data_library_(Library::null()), 71 typed_data_library_(Library::null()),
72 profiler_library_(Library::null()), 72 profiler_library_(Library::null()),
73 libraries_(GrowableObjectArray::null()), 73 libraries_(GrowableObjectArray::null()),
74 pending_classes_(GrowableObjectArray::null()), 74 pending_classes_(GrowableObjectArray::null()),
75 pending_functions_(GrowableObjectArray::null()), 75 pending_functions_(GrowableObjectArray::null()),
76 pending_deferred_loads_(GrowableObjectArray::null()), 76 pending_deferred_loads_(GrowableObjectArray::null()),
77 resume_capabilities_(GrowableObjectArray::null()), 77 resume_capabilities_(GrowableObjectArray::null()),
78 exit_listeners_(GrowableObjectArray::null()),
79 error_listeners_(GrowableObjectArray::null()),
78 sticky_error_(Error::null()), 80 sticky_error_(Error::null()),
79 empty_context_(Context::null()), 81 empty_context_(Context::null()),
80 stack_overflow_(Instance::null()), 82 stack_overflow_(Instance::null()),
81 out_of_memory_(Instance::null()), 83 out_of_memory_(Instance::null()),
82 preallocated_unhandled_exception_(UnhandledException::null()), 84 preallocated_unhandled_exception_(UnhandledException::null()),
83 preallocated_stack_trace_(Stacktrace::null()), 85 preallocated_stack_trace_(Stacktrace::null()),
84 lookup_port_handler_(Function::null()), 86 lookup_port_handler_(Function::null()),
85 empty_uint32_array_(TypedData::null()), 87 empty_uint32_array_(TypedData::null()),
86 handle_message_function_(Function::null()), 88 handle_message_function_(Function::null()),
87 library_load_error_table_(Array::null()) { 89 library_load_error_table_(Array::null()) {
(...skipping 30 matching lines...) Expand all
118 } 120 }
119 ASSERT(this->stack_overflow() == Instance::null()); 121 ASSERT(this->stack_overflow() == Instance::null());
120 ASSERT(this->out_of_memory() == Instance::null()); 122 ASSERT(this->out_of_memory() == Instance::null());
121 ASSERT(this->preallocated_stack_trace() == Stacktrace::null()); 123 ASSERT(this->preallocated_stack_trace() == Stacktrace::null());
122 124
123 ASSERT(this->pending_functions() == GrowableObjectArray::null()); 125 ASSERT(this->pending_functions() == GrowableObjectArray::null());
124 this->pending_functions_ = GrowableObjectArray::New(); 126 this->pending_functions_ = GrowableObjectArray::New();
125 this->pending_deferred_loads_ = GrowableObjectArray::New(); 127 this->pending_deferred_loads_ = GrowableObjectArray::New();
126 128
127 this->resume_capabilities_ = GrowableObjectArray::New(); 129 this->resume_capabilities_ = GrowableObjectArray::New();
130 this->exit_listeners_ = GrowableObjectArray::New();
131 this->error_listeners_ = GrowableObjectArray::New();
128 132
129 Object& result = Object::Handle(); 133 Object& result = Object::Handle();
130 const Library& library = Library::Handle(Library::CoreLibrary()); 134 const Library& library = Library::Handle(Library::CoreLibrary());
131 135
132 result = DartLibraryCalls::InstanceCreate(library, 136 result = DartLibraryCalls::InstanceCreate(library,
133 Symbols::StackOverflowError(), 137 Symbols::StackOverflowError(),
134 Symbols::Dot(), 138 Symbols::Dot(),
135 Object::empty_array()); 139 Object::empty_array());
136 if (result.IsError()) { 140 if (result.IsError()) {
137 return false; 141 return false;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 cls = async_lib.LookupClass(Symbols::StreamIterator()); 189 cls = async_lib.LookupClass(Symbols::StreamIterator());
186 ASSERT(!cls.IsNull()); 190 ASSERT(!cls.IsNull());
187 set_stream_iterator_class(cls); 191 set_stream_iterator_class(cls);
188 192
189 const Library& internal_lib = Library::Handle(internal_library()); 193 const Library& internal_lib = Library::Handle(internal_library());
190 cls = internal_lib.LookupClass(Symbols::Symbol()); 194 cls = internal_lib.LookupClass(Symbols::Symbol());
191 set_symbol_class(cls); 195 set_symbol_class(cls);
192 } 196 }
193 197
194 } // namespace dart 198 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698