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

Unified Diff: src/snapshot/natives-external.cc

Issue 1130993003: Reland: Make V8 extras a separate type of native (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-snapshot
Patch Set: Fix js2c.py's dummy files Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/snapshot/natives.h ('k') | src/startup-data-util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/natives-external.cc
diff --git a/src/snapshot/natives-external.cc b/src/snapshot/natives-external.cc
index 14def474094d45b8fb38ad64d2e231d9a0759280..e02a24c1d37ccdb41eb41a6ddda7b76be8732935 100644
--- a/src/snapshot/natives-external.cc
+++ b/src/snapshot/natives-external.cc
@@ -159,6 +159,7 @@ void ReadNatives() {
NativesHolder<CORE>::set(NativesStore::MakeFromScriptsSource(&bytes));
NativesHolder<EXPERIMENTAL>::set(
NativesStore::MakeFromScriptsSource(&bytes));
+ NativesHolder<EXTRAS>::set(NativesStore::MakeFromScriptsSource(&bytes));
DCHECK(!bytes.HasMore());
}
}
@@ -185,6 +186,7 @@ void SetNativesFromFile(StartupData* natives_blob) {
void DisposeNatives() {
NativesHolder<CORE>::Dispose();
NativesHolder<EXPERIMENTAL>::Dispose();
+ NativesHolder<EXTRAS>::Dispose();
}
@@ -229,6 +231,7 @@ Vector<const char> NativesCollection<type>::GetScriptsSource() {
// my choice to elide them. This we'll explicitly instantiate these.
template class NativesCollection<CORE>;
template class NativesCollection<EXPERIMENTAL>;
+template class NativesCollection<EXTRAS>;
} // namespace v8::internal
} // namespace v8
« no previous file with comments | « src/snapshot/natives.h ('k') | src/startup-data-util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698