Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: src/snapshot/natives.h

Issue 1990183002: [serializer] do not cache resource data pointer for native source. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | src/snapshot/natives-common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_SNAPSHOT_NATIVES_H_ 5 #ifndef V8_SNAPSHOT_NATIVES_H_
6 #define V8_SNAPSHOT_NATIVES_H_ 6 #define V8_SNAPSHOT_NATIVES_H_
7 7
8 #include "src/objects.h" 8 #include "src/objects.h"
9 #include "src/vector.h" 9 #include "src/vector.h"
10 10
(...skipping 26 matching lines...) Expand all
37 // non-debugger scripts have an index in the interval [GetDebuggerCount(), 37 // non-debugger scripts have an index in the interval [GetDebuggerCount(),
38 // GetNativesCount()). 38 // GetNativesCount()).
39 static int GetIndex(const char* name); 39 static int GetIndex(const char* name);
40 static Vector<const char> GetScriptSource(int index); 40 static Vector<const char> GetScriptSource(int index);
41 static Vector<const char> GetScriptName(int index); 41 static Vector<const char> GetScriptName(int index);
42 static Vector<const char> GetScriptsSource(); 42 static Vector<const char> GetScriptsSource();
43 43
44 // The following methods are implemented in natives-common.cc: 44 // The following methods are implemented in natives-common.cc:
45 45
46 static FixedArray* GetSourceCache(Heap* heap); 46 static FixedArray* GetSourceCache(Heap* heap);
47 static void UpdateSourceCache(Heap* heap);
48 }; 47 };
49 48
50 typedef NativesCollection<CORE> Natives; 49 typedef NativesCollection<CORE> Natives;
51 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives; 50 typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives;
52 typedef NativesCollection<EXTRAS> ExtraNatives; 51 typedef NativesCollection<EXTRAS> ExtraNatives;
53 typedef NativesCollection<EXPERIMENTAL_EXTRAS> ExperimentalExtraNatives; 52 typedef NativesCollection<EXPERIMENTAL_EXTRAS> ExperimentalExtraNatives;
54 53
55 54
56 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 55 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
57 // Used for reading the natives at runtime. Implementation in natives-empty.cc 56 // Used for reading the natives at runtime. Implementation in natives-empty.cc
58 void SetNativesFromFile(StartupData* natives_blob); 57 void SetNativesFromFile(StartupData* natives_blob);
59 void ReadNatives(); 58 void ReadNatives();
60 void DisposeNatives(); 59 void DisposeNatives();
61 #endif 60 #endif
62 61
63 } // namespace internal 62 } // namespace internal
64 } // namespace v8 63 } // namespace v8
65 64
66 #endif // V8_SNAPSHOT_NATIVES_H_ 65 #endif // V8_SNAPSHOT_NATIVES_H_
OLDNEW
« no previous file with comments | « src/snapshot/deserializer.cc ('k') | src/snapshot/natives-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698