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

Unified Diff: src/builtins/setup-builtins-full.cc

Issue 2760233005: [snapshot] Move builtins generation into mksnapshot (Closed)
Patch Set: Created 3 years, 9 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
Index: src/builtins/setup-builtins-full.cc
diff --git a/src/builtins/setup-builtins-full.cc b/src/builtins/setup-builtins-full.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7d39f51f7e098b726efd2307cbe4cd44aff0eda6
--- /dev/null
+++ b/src/builtins/setup-builtins-full.cc
@@ -0,0 +1,27 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/builtins/setup-builtins.h"
+
+#include "src/base/logging.h"
+#include "src/isolate.h"
+
+namespace v8 {
+namespace internal {
+
+void SetupBuiltinsDelegate::SetupBuiltins(Isolate* isolate,
+ bool create_heap_objects) {
+#ifdef V8_GYP_BUILD
+ // Compatibility hack to keep the deprecated GYP build working.
+ if (create_heap_objects) {
+ SetupBuiltinsInternal(isolate);
+ }
+ return;
+#endif
+ DCHECK(create_heap_objects);
+ SetupBuiltinsInternal(isolate);
+}
+
+} // namespace internal
+} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698