Serializer: share executable accessor infos between native contexts.
authoryangguo <yangguo@chromium.org>
Thu, 16 Apr 2015 18:07:57 +0000 (11:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Apr 2015 18:07:51 +0000 (18:07 +0000)
R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/1081443006

Cr-Commit-Position: refs/heads/master@{#27901}

src/snapshot/serialize.h

index 5afafc1..bb33cf7 100644 (file)
@@ -788,9 +788,8 @@ class PartialSerializer : public Serializer {
     // unique ID, and deserializing several partial snapshots containing script
     // would cause dupes.
     DCHECK(!o->IsScript());
-    return o->IsName() || o->IsSharedFunctionInfo() ||
-           o->IsHeapNumber() || o->IsCode() ||
-           o->IsScopeInfo() ||
+    return o->IsName() || o->IsSharedFunctionInfo() || o->IsHeapNumber() ||
+           o->IsCode() || o->IsScopeInfo() || o->IsExecutableAccessorInfo() ||
            o->map() ==
                startup_serializer_->isolate()->heap()->fixed_cow_array_map();
   }