Revision: 20570
Author:   [email protected]
Date:     Tue Apr  8 09:36:04 2014 UTC
Log:      Fix invalid local property lookup for transitions.

BUG=361025
LOG=y
[email protected]

Review URL: https://codereview.chromium.org/224903023
http://code.google.com/p/v8/source/detail?r=20570

Added:
 /branches/bleeding_edge/test/mjsunit/regress/regress-361025.js
Modified:
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-361025.js Tue Apr 8 09:36:04 2014 UTC
@@ -0,0 +1,10 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --expose-gc
+
+var x = new Object();
+x.__defineGetter__('a', function() { return 7 });
+JSON.parse('{"a":2600753951}');
+gc();
=======================================
--- /branches/bleeding_edge/src/objects.cc      Tue Apr  8 07:43:46 2014 UTC
+++ /branches/bleeding_edge/src/objects.cc      Tue Apr  8 09:36:04 2014 UTC
@@ -4228,8 +4228,8 @@
         name, value, attributes, value_type, mode, extensibility_check);
   }

-  if (lookup.IsFound() &&
-      (lookup.type() == INTERCEPTOR || lookup.type() == CALLBACKS)) {
+  if (lookup.IsInterceptor() ||
+      (lookup.IsDescriptorOrDictionary() && lookup.type() == CALLBACKS)) {
     object->LocalLookupRealNamedProperty(*name, &lookup);
   }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to