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

Unified Diff: src/interpreter/setup-interpreter.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/interpreter/setup-interpreter-internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/setup-interpreter.h
diff --git a/src/interpreter/setup-interpreter.h b/src/interpreter/setup-interpreter.h
new file mode 100644
index 0000000000000000000000000000000000000000..e9adad95376e747f677fe4af18c422f9c0c157bf
--- /dev/null
+++ b/src/interpreter/setup-interpreter.h
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef V8_INTERPRETER_SETUP_INTERPRETER_H_
+#define V8_INTERPRETER_SETUP_INTERPRETER_H_
+
+#include "src/interpreter/bytecode-operands.h"
+#include "src/interpreter/bytecodes.h"
+
+namespace v8 {
+namespace internal {
+namespace interpreter {
+
+class Interpreter;
+
+class SetupInterpreter {
+ public:
+ static void InstallBytecodeHandlers(Interpreter* interpreter);
+
+ private:
+ // In the case of bytecodes that share handler implementations, copy the code
+ // into the bytecode's dispatcher table entry and return true.
+ static bool ReuseExistingHandler(Address* dispatch_table, Bytecode bytecode,
+ OperandScale operand_scale);
+ // Generates handler for given |bytecode| and |operand_scale|
+ // and installs it into the |dispatch_table|.
+ static void InstallBytecodeHandler(Isolate* isolate, Address* dispatch_table,
+ Bytecode bytecode,
+ OperandScale operand_scale);
+};
+
+} // namespace interpreter
+} // namespace internal
+} // namespace v8
+
+#endif // V8_INTERPRETER_SETUP_INTERPRETER_H_
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/interpreter/setup-interpreter-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698