Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 6921883e0257a45c2a13e1564f66c4da90a0858e..06eff69c8e591597bb43501df3fca4ad8b9507ea 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -50,6 +50,7 @@ namespace internal { |
V(StringCompare) \ |
V(StubFailureTrampoline) \ |
V(SubString) \ |
+ V(ToNumber) \ |
/* HydrogenCodeStubs */ \ |
V(AllocateHeapNumber) \ |
V(ArrayNArgumentsConstructor) \ |
@@ -77,7 +78,6 @@ namespace internal { |
V(StoreFastElement) \ |
V(StringAdd) \ |
V(ToBoolean) \ |
- V(ToNumber) \ |
V(TransitionElementsKind) \ |
V(VectorKeyedLoad) \ |
V(VectorLoad) \ |
@@ -545,15 +545,6 @@ class NopRuntimeCallHelper : public RuntimeCallHelper { |
}; |
-class ToNumberStub: public HydrogenCodeStub { |
- public: |
- explicit ToNumberStub(Isolate* isolate) : HydrogenCodeStub(isolate) { } |
- |
- DEFINE_CALL_INTERFACE_DESCRIPTOR(ToNumber); |
- DEFINE_HYDROGEN_CODE_STUB(ToNumber, HydrogenCodeStub); |
-}; |
- |
- |
class NumberToStringStub FINAL : public HydrogenCodeStub { |
public: |
explicit NumberToStringStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
@@ -2537,6 +2528,15 @@ class SubStringStub : public PlatformCodeStub { |
}; |
+class ToNumberStub FINAL : public PlatformCodeStub { |
+ public: |
+ explicit ToNumberStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
+ |
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(ToNumber); |
+ DEFINE_PLATFORM_CODE_STUB(ToNumber, PlatformCodeStub); |
+}; |
+ |
+ |
class StringCompareStub : public PlatformCodeStub { |
public: |
explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |