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

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

Issue 50523018: Cleanup StaticResolveType, it does not seem to be used anywhere. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/intermediate_language.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 3697 matching lines...) Expand 10 before | Expand all | Expand 10 after
3708 arguments->Add(PushArgument(existing_argument_names_value)); 3708 arguments->Add(PushArgument(existing_argument_names_value));
3709 // Resolve and call NoSuchMethodError._throwNew. 3709 // Resolve and call NoSuchMethodError._throwNew.
3710 const Library& core_lib = Library::Handle(Library::CoreLibrary()); 3710 const Library& core_lib = Library::Handle(Library::CoreLibrary());
3711 const Class& cls = Class::Handle( 3711 const Class& cls = Class::Handle(
3712 core_lib.LookupClass(Symbols::NoSuchMethodError())); 3712 core_lib.LookupClass(Symbols::NoSuchMethodError()));
3713 ASSERT(!cls.IsNull()); 3713 ASSERT(!cls.IsNull());
3714 const Function& func = Function::ZoneHandle( 3714 const Function& func = Function::ZoneHandle(
3715 Resolver::ResolveStatic(cls, 3715 Resolver::ResolveStatic(cls,
3716 Library::PrivateCoreLibName(Symbols::ThrowNew()), 3716 Library::PrivateCoreLibName(Symbols::ThrowNew()),
3717 arguments->length(), 3717 arguments->length(),
3718 Object::null_array(), 3718 Object::null_array()));
3719 Resolver::kIsQualified));
3720 ASSERT(!func.IsNull()); 3719 ASSERT(!func.IsNull());
3721 return new StaticCallInstr(token_pos, 3720 return new StaticCallInstr(token_pos,
3722 func, 3721 func,
3723 Object::null_array(), // No names. 3722 Object::null_array(), // No names.
3724 arguments, 3723 arguments,
3725 owner()->ic_data_array()); 3724 owner()->ic_data_array());
3726 } 3725 }
3727 3726
3728 3727
3729 void EffectGraphVisitor::BuildThrowNode(ThrowNode* node) { 3728 void EffectGraphVisitor::BuildThrowNode(ThrowNode* node) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3849 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; 3848 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1;
3850 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); 3849 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
3851 OS::SNPrint(chars, len, kFormat, function_name, reason); 3850 OS::SNPrint(chars, len, kFormat, function_name, reason);
3852 const Error& error = Error::Handle( 3851 const Error& error = Error::Handle(
3853 LanguageError::New(String::Handle(String::New(chars)))); 3852 LanguageError::New(String::Handle(String::New(chars))));
3854 Isolate::Current()->long_jump_base()->Jump(1, error); 3853 Isolate::Current()->long_jump_base()->Jump(1, error);
3855 } 3854 }
3856 3855
3857 3856
3858 } // namespace dart 3857 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698