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

Unified Diff: src/interpreter/bytecode-flags.h

Issue 2149093002: Reland "[interpreter] Reduce dependencies in bytecodes.{h,cc}" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/bytecode-decoder.cc ('k') | src/interpreter/bytecode-flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-flags.h
diff --git a/src/interpreter/bytecode-flags.h b/src/interpreter/bytecode-flags.h
new file mode 100644
index 0000000000000000000000000000000000000000..1068d8a9d9c39b5daf83c712f5b08cb793532455
--- /dev/null
+++ b/src/interpreter/bytecode-flags.h
@@ -0,0 +1,42 @@
+// Copyright 2016 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_BYTECODE_FLAGS_H_
+#define V8_INTERPRETER_BYTECODE_FLAGS_H_
+
+#include "src/utils.h"
+
+namespace v8 {
+namespace internal {
+namespace interpreter {
+
+class CreateObjectLiteralFlags {
+ public:
+ class FlagsBits : public BitField8<int, 0, 3> {};
+ class FastClonePropertiesCountBits
+ : public BitField8<int, FlagsBits::kNext, 3> {};
+
+ static uint8_t Encode(bool fast_clone_supported, int properties_count,
+ int runtime_flags);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(CreateObjectLiteralFlags);
+};
+
+class CreateClosureFlags {
+ public:
+ class PretenuredBit : public BitField8<bool, 0, 1> {};
+ class FastNewClosureBit : public BitField8<bool, PretenuredBit::kNext, 1> {};
+
+ static uint8_t Encode(bool pretenure, bool is_function_scope);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(CreateClosureFlags);
+};
+
+} // namespace interpreter
+} // namespace internal
+} // namespace v8
+
+#endif // V8_INTERPRETER_BYTECODE_FLAGS_H_
« no previous file with comments | « src/interpreter/bytecode-decoder.cc ('k') | src/interpreter/bytecode-flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698