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

Unified Diff: runtime/vm/code_generator_ia32.cc

Issue 9726011: Implement StaticGetter and StaticSetter in new compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/code_generator_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator_ia32.cc
===================================================================
--- runtime/vm/code_generator_ia32.cc (revision 5662)
+++ runtime/vm/code_generator_ia32.cc (working copy)
@@ -2080,6 +2080,8 @@
interpolate_arg,
kNoArgumentNames);
if (concatenated.IsUnhandledException()) {
+ // TODO(hausner): Shouldn't we generate a throw?
+ // Then remove unused CodeGenerator::ErrorMsg().
ErrorMsg(node->token_index(),
"Exception thrown in CodeGenerator::VisitStringConcatNode");
}
@@ -2444,10 +2446,7 @@
const String& getter_name = String::Handle(Field::GetterName(field_name));
const Function& function =
Function::ZoneHandle(field_class.LookupStaticFunction(getter_name));
- if (function.IsNull()) {
- ErrorMsg(token_index, "Static getter does not exist: %s",
- getter_name.ToCString());
- }
+ ASSERT(!function.IsNull());
__ LoadObject(ECX, function);
const int kNumberOfArguments = 0;
const Array& kNoArgumentNames = Array::Handle();
@@ -2478,6 +2477,7 @@
const String& setter_name = String::Handle(Field::SetterName(field_name));
const Function& function =
Function::ZoneHandle(field_class.LookupStaticFunction(setter_name));
+ ASSERT(!function.IsNull());
__ LoadObject(ECX, function);
const int kNumberOfArguments = 1; // value.
const Array& kNoArgumentNames = Array::Handle();
« no previous file with comments | « no previous file | runtime/vm/code_generator_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698