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

Side by Side Diff: src/setup-isolate.h

Issue 2760233005: [snapshot] Move builtins generation into mksnapshot (Closed)
Patch Set: fix GYP builds Created 3 years, 8 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/isolate.cc ('k') | src/setup-isolate-deserialize.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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 namespace v8 {
6 namespace internal {
7
8 class Builtins;
9 class Code;
10 class Isolate;
11
12 namespace interpreter {
13 class Interpreter;
14 } // namespace interpreter
15
16 // This class is an abstraction layer around initialization of components
17 // that are either deserialized from the snapshot or generated from scratch.
18 // Currently this includes builtins and interpreter bytecode handlers.
19 // There are three implementations to choose from (at link time):
20 // - setup-isolate-deserialize.cc: always loads things from snapshot.
21 // - setup-isolate-full.cc: always generates things.
22 // - setup-isolate-for-tests.cc: does the one or the other, controlled by
23 // the |create_heap_objects| flag.
24 //
25 // The actual implementations of generation of builtins and handlers is in
26 // setup-builtins-internal.cc and setup-interpreter-internal.cc, and is
27 // linked in by the latter two Delegate implementations.
28 class SetupIsolateDelegate {
29 public:
30 SetupIsolateDelegate() {}
31 virtual ~SetupIsolateDelegate() {}
32
33 virtual void SetupBuiltins(Isolate* isolate, bool create_heap_objects);
34
35 virtual void SetupInterpreter(interpreter::Interpreter* interpreter,
36 bool create_heap_objects);
37
38 protected:
39 static void SetupBuiltinsInternal(Isolate* isolate);
40 static void AddBuiltin(Builtins* builtins, int index, Code* code);
41 };
42
43 } // namespace internal
44 } // namespace v8
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/setup-isolate-deserialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698