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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 cls = async_lib.LookupClass(Symbols::StreamIterator()); | 242 cls = async_lib.LookupClass(Symbols::StreamIterator()); |
243 ASSERT(!cls.IsNull()); | 243 ASSERT(!cls.IsNull()); |
244 set_stream_iterator_class(cls); | 244 set_stream_iterator_class(cls); |
245 | 245 |
246 String& function_name = String::Handle(zone); | 246 String& function_name = String::Handle(zone); |
247 Function& function = Function::Handle(zone); | 247 Function& function = Function::Handle(zone); |
248 function_name ^= async_lib.PrivateName(Symbols::SetAsyncThreadStackTrace()); | 248 function_name ^= async_lib.PrivateName(Symbols::SetAsyncThreadStackTrace()); |
249 ASSERT(!function_name.IsNull()); | 249 ASSERT(!function_name.IsNull()); |
250 function ^= Resolver::ResolveStatic(async_lib, Object::null_string(), | 250 function ^= Resolver::ResolveStatic(async_lib, Object::null_string(), |
251 function_name, 1, Object::null_array()); | 251 function_name, 1, Object::null_array()); |
| 252 ASSERT(!function.IsNull()); |
252 set_async_set_thread_stack_trace(function); | 253 set_async_set_thread_stack_trace(function); |
253 | 254 |
254 function_name ^= async_lib.PrivateName(Symbols::ClearAsyncThreadStackTrace()); | 255 function_name ^= async_lib.PrivateName(Symbols::ClearAsyncThreadStackTrace()); |
255 ASSERT(!function_name.IsNull()); | 256 ASSERT(!function_name.IsNull()); |
256 function ^= Resolver::ResolveStatic(async_lib, Object::null_string(), | 257 function ^= Resolver::ResolveStatic(async_lib, Object::null_string(), |
257 function_name, 0, Object::null_array()); | 258 function_name, 0, Object::null_array()); |
258 ASSERT(!function.IsNull()); | 259 ASSERT(!function.IsNull()); |
259 set_async_clear_thread_stack_trace(function); | 260 set_async_clear_thread_stack_trace(function); |
260 | 261 |
261 | 262 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 simple_instance_of_function_ = | 311 simple_instance_of_function_ = |
311 PrivateObjectLookup(Symbols::_simpleInstanceOf()); | 312 PrivateObjectLookup(Symbols::_simpleInstanceOf()); |
312 simple_instance_of_true_function_ = | 313 simple_instance_of_true_function_ = |
313 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); | 314 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); |
314 simple_instance_of_false_function_ = | 315 simple_instance_of_false_function_ = |
315 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); | 316 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); |
316 #endif | 317 #endif |
317 } | 318 } |
318 | 319 |
319 } // namespace dart | 320 } // namespace dart |
OLD | NEW |