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

Unified Diff: runtime/vm/parser.cc

Issue 12017020: Some more ^= to |= (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « runtime/lib/string.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 17302)
+++ runtime/vm/parser.cc (working copy)
@@ -364,14 +364,14 @@
String* Parser::CurrentLiteral() const {
String& result = String::ZoneHandle();
- result ^= tokens_iterator_.CurrentLiteral();
+ result |= tokens_iterator_.CurrentLiteral();
return &result;
}
RawDouble* Parser::CurrentDoubleLiteral() const {
LiteralToken& token = LiteralToken::Handle();
- token ^= tokens_iterator_.CurrentToken();
+ token |= tokens_iterator_.CurrentToken();
ASSERT(token.kind() == Token::kDOUBLE);
return reinterpret_cast<RawDouble*>(token.value());
}
@@ -379,7 +379,7 @@
RawInteger* Parser::CurrentIntegerLiteral() const {
LiteralToken& token = LiteralToken::Handle();
- token ^= tokens_iterator_.CurrentToken();
+ token |= tokens_iterator_.CurrentToken();
ASSERT(token.kind() == Token::kINTEGER);
return reinterpret_cast<RawInteger*>(token.value());
}
@@ -3138,7 +3138,7 @@
ErrorMsg(classname_pos, "'%s' is already defined",
class_name.ToCString());
}
- cls ^= obj.raw();
+ cls |= obj.raw();
if (is_patch) {
String& patch = String::Handle(
String::Concat(Symbols::PatchSpace(), class_name));
@@ -7402,7 +7402,7 @@
if (primary_node->primary().IsClass()) {
// If the primary node referred to a class we are loading a
// qualified static field.
- cls ^= primary_node->primary().raw();
+ cls |= primary_node->primary().raw();
}
}
if (cls.IsNull()) {
@@ -9138,7 +9138,7 @@
// Call interpolation function.
String& concatenated = String::ZoneHandle();
- concatenated ^= DartEntry::InvokeStatic(func, interpolate_arg);
+ concatenated |= DartEntry::InvokeStatic(func, interpolate_arg);
if (concatenated.IsUnhandledException()) {
ErrorMsg("Exception thrown in Parser::Interpolate");
}
« no previous file with comments | « runtime/lib/string.cc ('k') | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698