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

Unified Diff: vm/resolver.cc

Issue 12052033: Added macros OBJECT_IMPLEMENTATION and FINAL_OBJECT_IMPLEMENTATION (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 | « vm/parser.cc ('k') | vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/resolver.cc
===================================================================
--- vm/resolver.cc (revision 17436)
+++ vm/resolver.cc (working copy)
@@ -126,22 +126,22 @@
const bool is_getter = Field::IsGetterName(function_name);
String& field_name = String::Handle();
if (is_getter) {
- field_name |= Field::NameFromGetter(function_name);
+ field_name ^= Field::NameFromGetter(function_name);
}
// Now look for an instance function whose name matches function_name
// in the class.
Function& function = Function::Handle();
while (function.IsNull() && !cls.IsNull()) {
- function |= cls.LookupDynamicFunction(function_name);
+ function ^= cls.LookupDynamicFunction(function_name);
// Getter invocation might actually be a method extraction.
if (is_getter && function.IsNull()) {
- function |= cls.LookupDynamicFunction(field_name);
+ function ^= cls.LookupDynamicFunction(field_name);
if (!function.IsNull()) {
// We were looking for the getter but found a method with the same name.
// Create a method extractor and return it.
- function |= CreateMethodExtractor(function_name, function);
+ function ^= CreateMethodExtractor(function_name, function);
}
}
@@ -163,7 +163,7 @@
// Check if we are referring to a top level function.
const Object& object = Object::Handle(library.LookupObject(function_name));
if (!object.IsNull() && object.IsFunction()) {
- function |= object.raw();
+ function ^= object.raw();
if (!function.AreValidArguments(num_arguments, argument_names, NULL)) {
if (FLAG_trace_resolving) {
String& error_message = String::Handle();
« no previous file with comments | « vm/parser.cc ('k') | vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698