From: yangguo Date: Thu, 16 Apr 2015 18:07:57 +0000 (-0700) Subject: Serializer: share executable accessor infos between native contexts. X-Git-Tag: upstream/4.7.83~3139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04b72aa09ffbe81a6fd91443fed91af62ca71292;p=platform%2Fupstream%2Fv8.git 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} --- 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(); }