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

Unified Diff: runtime/lib/integers.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/byte_array.cc ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.cc
===================================================================
--- runtime/lib/integers.cc (revision 17302)
+++ runtime/lib/integers.cc (working copy)
@@ -23,13 +23,13 @@
static bool CheckInteger(const Integer& i) {
if (i.IsBigint()) {
Bigint& bigint = Bigint::Handle();
- bigint ^= i.raw();
+ bigint |= i.raw();
return !BigintOperations::FitsIntoSmi(bigint) &&
!BigintOperations::FitsIntoMint(bigint);
}
if (i.IsMint()) {
Mint& mint = Mint::Handle();
- mint ^= i.raw();
+ mint |= i.raw();
return !Smi::IsValid64(mint.value());
}
return true;
@@ -218,7 +218,7 @@
}
if (value.IsSmi()) {
Smi& smi_value = Smi::Handle();
- smi_value ^= value.raw();
+ smi_value |= value.raw();
return smi_value.ShiftOp(kind, amount);
}
Bigint& big_value = Bigint::Handle();
@@ -240,7 +240,7 @@
}
} else {
ASSERT(value.IsBigint());
- big_value ^= value.raw();
+ big_value |= value.raw();
}
switch (kind) {
case Token::kSHL:
« no previous file with comments | « runtime/lib/byte_array.cc ('k') | runtime/lib/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698