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

Unified Diff: vm/dart_api_impl.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/dart.cc ('k') | vm/dart_api_impl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_impl.cc
===================================================================
--- vm/dart_api_impl.cc (revision 17436)
+++ vm/dart_api_impl.cc (working copy)
@@ -2734,7 +2734,7 @@
// Some special types like 'dynamic' have a null functions list.
if (!func_array.IsNull()) {
for (intptr_t i = 0; i < func_array.Length(); ++i) {
- func |= func_array.At(i);
+ func ^= func_array.At(i);
// Skip implicit getters and setters.
if (func.kind() == RawFunction::kImplicitGetter ||
@@ -2755,7 +2755,7 @@
while (it.HasNext()) {
obj = it.GetNext();
if (obj.IsFunction()) {
- func |= obj.raw();
+ func ^= obj.raw();
name = func.UserVisibleName();
names.Add(name);
}
@@ -3078,7 +3078,7 @@
// allocated in the vm isolate.
if (!field_array.IsNull()) {
for (intptr_t i = 0; i < field_array.Length(); ++i) {
- field |= field_array.At(i);
+ field ^= field_array.At(i);
name = field.UserVisibleName();
names.Add(name);
}
@@ -3090,7 +3090,7 @@
while (it.HasNext()) {
obj = it.GetNext();
if (obj.IsField()) {
- field |= obj.raw();
+ field ^= obj.raw();
name = field.UserVisibleName();
names.Add(name);
}
@@ -3393,7 +3393,7 @@
// TODO(turnidge): Support redirecting factories.
ASSERT(result.IsFunction());
Function& constructor = Function::Handle(isolate);
- constructor |= result.raw();
+ constructor ^= result.raw();
Instance& new_object = Instance::Handle(isolate);
if (constructor.IsConstructor()) {
@@ -3806,7 +3806,7 @@
if (field.IsNull()) {
const String& setter_name =
String::Handle(isolate, Field::SetterName(field_name));
- setter |= lib.LookupFunctionAllowPrivate(setter_name);
+ setter ^= lib.LookupFunctionAllowPrivate(setter_name);
}
if (!setter.IsNull()) {
@@ -4180,7 +4180,7 @@
return Api::NewError("%s: Unable to deserialize snapshot correctly.",
CURRENT_FUNC);
}
- library |= tmp.raw();
+ library ^= tmp.raw();
library.set_debuggable(true);
isolate->object_store()->set_root_library(library);
return Api::NewHandle(isolate, library.raw());
« no previous file with comments | « vm/dart.cc ('k') | vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698