@@ -11,7 +11,6 @@ class V8Config
1111 private static final String AndroidKey = "android" ;
1212 private static final String V8FlagsKey = "v8Flags" ;
1313 private static final String CodeCacheKey = "codeCache" ;
14- private static final String HeapSnapshotKey = "heapSnapshot" ;
1514 private static final String HeapSnapshotScriptKey = "heapSnapshotScript" ;
1615 private static final String HeapSnapshotBlobKey = "heapSnapshotBlob" ;
1716 private static final String SnapshotFile = "snapshot.blob" ;
@@ -41,14 +40,10 @@ public static Object[] fromPackageJSON(File appDir)
4140 {
4241 result [1 ] = androidObject .getBoolean (CodeCacheKey );
4342 }
44- if (androidObject .has (HeapSnapshotKey ))
45- {
46- result [2 ] = androidObject .getBoolean (HeapSnapshotKey );
47- }
4843 if (androidObject .has (HeapSnapshotScriptKey ))
4944 {
5045 String value = androidObject .getString (HeapSnapshotScriptKey );
51- result [3 ] = FileSystem .resolveRelativePath (appDir .getPath (), value , appDir + "/app/" );
46+ result [2 ] = FileSystem .resolveRelativePath (appDir .getPath (), value , appDir + "/app/" );
5247 }
5348 if (androidObject .has (HeapSnapshotBlobKey ))
5449 {
@@ -59,12 +54,12 @@ public static Object[] fromPackageJSON(File appDir)
5954 {
6055 // this path is expected to be a directory, containing three sub-directories: armeabi-v7a, x86 and arm64-v8a
6156 path = path + "/" + Build .CPU_ABI + "/" + SnapshotFile ;
62- result [4 ] = path ;
57+ result [3 ] = path ;
6358 }
6459 }
6560 if (androidObject .has (ProfilerOutputDirKey ))
6661 {
67- result [5 ] = androidObject .getString (ProfilerOutputDirKey );
62+ result [4 ] = androidObject .getString (ProfilerOutputDirKey );
6863 }
6964 }
7065 }
@@ -83,8 +78,6 @@ private static Object[] makeDefaultOptions()
8378 "--expose_gc" ,
8479 // enable v8 code caching, false by default
8580 false ,
86- // enable v8 heap snapshot, false by default
87- false ,
8881 // arbitrary script to be included in the snapshot
8982 "" ,
9083 // a binary file containing an already saved snapshot
0 commit comments