Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 372b788fee1a2d9b9f2c4fb6748a7d7600e218b7..f1759ee3601058c46acd9112c8dcc25efb8b67e7 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -54,6 +54,7 @@ namespace internal { |
V(StubFailureTrampoline) \ |
V(SubString) \ |
V(ToNumber) \ |
+ V(ToObject) \ |
V(VectorStoreICTrampoline) \ |
V(VectorKeyedStoreICTrampoline) \ |
V(VectorStoreIC) \ |
@@ -3050,6 +3051,15 @@ class ToNumberStub final : public PlatformCodeStub { |
}; |
+class ToObjectStub final : public HydrogenCodeStub { |
+ public: |
+ explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
+ |
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(ToObject); |
+ DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); |
+}; |
+ |
+ |
class StringCompareStub : public PlatformCodeStub { |
public: |
explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |