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

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

Issue 2781553004: Teach treeshaker about new cached functions and classes. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698