Revision: 9545
Author: [email protected]
Date: Fri Oct 7 02:45:13 2011
Log: Port r9538 and r9544 to Trunk.
Review URL: http://codereview.chromium.org/8195004
http://code.google.com/p/v8/source/detail?r=9545
Modified:
/trunk/src/cached-powers.cc
/trunk/src/objects.cc
/trunk/src/version.cc
=======================================
--- /trunk/src/cached-powers.cc Wed Jul 6 04:27:02 2011
+++ /trunk/src/cached-powers.cc Fri Oct 7 02:45:13 2011
@@ -134,14 +134,12 @@
};
static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
-static const int kCachedPowersOffset = -kCachedPowers[0].decimal_exponent;
+static const int kCachedPowersOffset = 348; // -1 * the first
decimal_exponent.
static const double kD_1_LOG2_10 = 0.30102999566398114; // 1 / lg(10)
-const int PowersOfTenCache::kDecimalExponentDistance =
- kCachedPowers[1].decimal_exponent - kCachedPowers[0].decimal_exponent;
-const int PowersOfTenCache::kMinDecimalExponent =
- kCachedPowers[0].decimal_exponent;
-const int PowersOfTenCache::kMaxDecimalExponent =
- kCachedPowers[kCachedPowersLength - 1].decimal_exponent;
+// Difference between the decimal exponents in the table above.
+const int PowersOfTenCache::kDecimalExponentDistance = 8;
+const int PowersOfTenCache::kMinDecimalExponent = -348;
+const int PowersOfTenCache::kMaxDecimalExponent = 340;
void PowersOfTenCache::GetCachedPowerForBinaryExponentRange(
int min_exponent,
=======================================
--- /trunk/src/objects.cc Wed Oct 5 14:44:48 2011
+++ /trunk/src/objects.cc Fri Oct 7 02:45:13 2011
@@ -3425,9 +3425,9 @@
bool JSObject::HasHiddenProperties() {
- LookupResult lookup;
- LocalLookupRealNamedProperty(GetHeap()->hidden_symbol(), &lookup);
- return lookup.IsFound();
+ return GetPropertyAttributePostInterceptor(this,
+ GetHeap()->hidden_symbol(),
+ false) != ABSENT;
}
=======================================
--- /trunk/src/version.cc Wed Oct 5 14:44:48 2011
+++ /trunk/src/version.cc Fri Oct 7 02:45:13 2011
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 3
#define MINOR_VERSION 6
#define BUILD_NUMBER 5
-#define PATCH_LEVEL 0
+#define PATCH_LEVEL 1
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
#define IS_CANDIDATE_VERSION 0
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev