1 // Copyright 2020 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef V8_HEAP_CPPGC_JS_CPP_SNAPSHOT_H_ 6 #define V8_HEAP_CPPGC_JS_CPP_SNAPSHOT_H_ 7 8 #include "src/base/macros.h" 9 10 namespace v8 { 11 12 class Isolate; 13 class EmbedderGraph; 14 15 namespace internal { 16 17 class V8_EXPORT_PRIVATE CppGraphBuilder final { 18 public: 19 // Add the C++ snapshot to the existing |graph|. See CppGraphBuilderImpl for 20 // algorithm internals. 21 static void Run(v8::Isolate* isolate, v8::EmbedderGraph* graph, void* data); 22 23 CppGraphBuilder() = delete; 24 }; 25 26 } // namespace internal 27 } // namespace v8 28 29 #endif // V8_HEAP_CPPGC_JS_CPP_SNAPSHOT_H_ 30