Version 3.20.7
Deprecated some debugger methods.
Fixed wrong bailout id in polymorphic stores (Chromium issue 259787).
Fixed data race in SamplingCircularQueue (Chromium issue 251218).
Fixed type feedback in presence of negative lookups (Chromium issue 252797).
Do not materialize context-allocated values for debug-evaluate (Chromium issue 259300).
Synchronized Compare-Literal behavior in FullCodegen and Hydrogen (Chromium issue 260345).
Performance and stability improvements on all platforms.
git-svn-id: http://v8.googlecode.com/svn/trunk@15795 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/conversions.h b/src/conversions.h
index 1fbb5f1..7aa2d3f 100644
--- a/src/conversions.h
+++ b/src/conversions.h
@@ -52,6 +52,11 @@
}
+inline bool isBinaryDigit(int x) {
+ return x == '0' || x == '1';
+}
+
+
// The fast double-to-(unsigned-)int conversion routine does not guarantee
// rounding towards zero.
// For NaN and values outside the int range, return INT_MIN or INT_MAX.
@@ -108,8 +113,10 @@
enum ConversionFlags {
NO_FLAGS = 0,
ALLOW_HEX = 1,
- ALLOW_OCTALS = 2,
- ALLOW_TRAILING_JUNK = 4
+ ALLOW_OCTAL = 2,
+ ALLOW_IMPLICIT_OCTAL = 4,
+ ALLOW_BINARY = 8,
+ ALLOW_TRAILING_JUNK = 16
};