Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index c6767e9b8b73f60c318e6a18952b0367aae8026e..040bf10f774597fed42d95832a349d03631a1899 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -80,6 +80,7 @@ namespace internal { |
V(MegamorphicLoad) \ |
V(NameDictionaryLookup) \ |
V(NumberToString) \ |
+ V(Typeof) \ |
V(RegExpConstructResult) \ |
V(StoreFastElement) \ |
V(StoreScriptContextField) \ |
@@ -595,6 +596,20 @@ class NumberToStringStub final : public HydrogenCodeStub { |
}; |
+class TypeofStub final : public HydrogenCodeStub { |
+ public: |
+ explicit TypeofStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
+ |
+ // Parameters accessed via CodeStubGraphBuilder::GetParameter() |
+ static const int kObject = 0; |
+ |
+ static void GenerateAheadOfTime(Isolate* isolate); |
+ |
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(Typeof); |
+ DEFINE_HYDROGEN_CODE_STUB(Typeof, HydrogenCodeStub); |
+}; |
+ |
+ |
class FastNewClosureStub : public HydrogenCodeStub { |
public: |
FastNewClosureStub(Isolate* isolate, LanguageMode language_mode, |