Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 83b559ff52f7652f3ad70eee33eae640b9fa22d2..854d9ac5966f78f36ee675eac0abda3b3490cc24 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -1023,9 +1023,18 @@ class GrowArrayElementsStub : public HydrogenCodeStub { |
class InstanceOfStub final : public PlatformCodeStub { |
public: |
- explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
+ explicit InstanceOfStub(Isolate* isolate, bool es6_instanceof = false) |
+ : PlatformCodeStub(isolate) { |
+ minor_key_ = IsES6InstanceOfBits::encode(es6_instanceof); |
+ } |
+ |
+ bool is_es6_instanceof() const { |
+ return IsES6InstanceOfBits::decode(minor_key_); |
+ } |
private: |
+ class IsES6InstanceOfBits : public BitField<bool, 0, 1> {}; |
+ |
DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); |
DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); |
}; |