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

Unified Diff: src/runtime/runtime.h

Issue 2142333002: Refactor class declaration logic to the parser and runtime Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor cleanup per Adam 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
Index: src/runtime/runtime.h
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index d84b57e9d6d8b566537d342700fd0b517cbd5303..6146439eaf23e2f3844f0b1d4c0e0fed22af0469 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -79,7 +79,7 @@ namespace internal {
F(ThrowStaticPrototypeError, 0, 1) \
F(ThrowIfStaticPrototype, 1, 1) \
F(HomeObjectSymbol, 0, 1) \
- F(DefineClass, 4, 1) \
+ F(DefineClass, 7, 1) \
F(LoadFromSuper, 3, 1) \
F(LoadKeyedFromSuper, 3, 1) \
F(StoreToSuper_Strict, 4, 1) \
@@ -1137,6 +1137,12 @@ class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
STATIC_ASSERT(LANGUAGE_END == 3);
class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
+// These flags are used for passing information about ES6 class methods from the
+// parser to the runtime.
+const uint32_t kIsStaticMask = 0x01;
+const uint32_t kIsAccessorMask = 0x02;
+const uint32_t kIsSetterMask = 0x04;
+
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698