From 04b72aa09ffbe81a6fd91443fed91af62ca71292 Mon Sep 17 00:00:00 2001 From: yangguo Date: Thu, 16 Apr 2015 11:07:57 -0700 Subject: [PATCH] Serializer: share executable accessor infos between native contexts. R=verwaest@chromium.org Review URL: https://codereview.chromium.org/1081443006 Cr-Commit-Position: refs/heads/master@{#27901} --- src/snapshot/serialize.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/snapshot/serialize.h b/src/snapshot/serialize.h index 5afafc1..bb33cf7 100644 --- a/src/snapshot/serialize.h +++ b/src/snapshot/serialize.h @@ -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(); } -- 2.7.4