Revision: 14904
Author: [email protected]
Date: Fri May 31 06:18:09 2013
Log: Merged r14902 into trunk branch.
Fix non-idempotent modification in JSObject::AddFastProperty.
[email protected]
TEST=mozilla/ecma/Array/15.4.5.2-2
Review URL: https://codereview.chromium.org/16256002
http://code.google.com/p/v8/source/detail?r=14904
Modified:
/trunk/src/objects.cc
/trunk/src/version.cc
=======================================
--- /trunk/src/objects.cc Tue May 28 09:58:15 2013
+++ /trunk/src/objects.cc Fri May 31 06:18:09 2013
@@ -1824,15 +1824,18 @@
Heap* heap = isolate->heap();
- Map* new_map;
- MaybeObject* maybe_new_map = map()->CopyAddDescriptor(&new_field, flag);
- if (!maybe_new_map->To(&new_map)) return maybe_new_map;
-
Object* storage;
MaybeObject* maybe_storage =
value->AllocateNewStorageFor(heap, representation);
if (!maybe_storage->To(&storage)) return maybe_storage;
+ // Note that Map::CopyAddDescriptor has side-effects, the new map is
already
+ // inserted in the transition tree. No more allocations that might fail
are
+ // allowed after this point.
+ Map* new_map;
+ MaybeObject* maybe_new_map = map()->CopyAddDescriptor(&new_field, flag);
+ if (!maybe_new_map->To(&new_map)) return maybe_new_map;
+
if (map()->unused_property_fields() == 0) {
ASSERT(values != NULL);
set_properties(values);
=======================================
--- /trunk/src/version.cc Fri May 31 04:40:45 2013
+++ /trunk/src/version.cc Fri May 31 06:18:09 2013
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 3
#define MINOR_VERSION 19
#define BUILD_NUMBER 7
-#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
---
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/groups/opt_out.