Reviewers: danno,

Description:
Port r9538 and r9544 to Trunk.

Please review this at http://codereview.chromium.org/8195004/

SVN Base: http://v8.googlecode.com/svn/trunk/

Affected files:
  M     src/cached-powers.cc
  M     src/objects.cc
  M     src/version.cc


Index: src/cached-powers.cc
===================================================================
--- src/cached-powers.cc        (revision 9544)
+++ src/cached-powers.cc        (working copy)
@@ -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,
Index: src/objects.cc
===================================================================
--- src/objects.cc      (revision 9544)
+++ src/objects.cc      (working copy)
@@ -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;
 }


Index: src/version.cc
===================================================================
--- src/version.cc      (revision 9544)
+++ src/version.cc      (working copy)
@@ -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

Reply via email to