Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 54602be6ec885d723258f1b15fec1709073eb762..14133b39b0d3df321b6b9939d1af96fd2fd0341d 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -49,7 +49,6 @@ namespace internal { |
V(ToNumber) \ |
V(NonNumberToNumber) \ |
V(StringToNumber) \ |
- V(ToLength) \ |
V(ToString) \ |
V(ToName) \ |
V(ToObject) \ |
@@ -131,6 +130,7 @@ namespace internal { |
V(StringGreaterThan) \ |
V(StringGreaterThanOrEqual) \ |
V(ToBoolean) \ |
+ V(ToLength) \ |
/* IC Handler stubs */ \ |
V(ArrayBufferViewLoadField) \ |
V(LoadConstant) \ |
@@ -836,6 +836,14 @@ class ToBooleanStub final : public TurboFanCodeStub { |
DEFINE_TURBOFAN_CODE_STUB(ToBoolean, TurboFanCodeStub); |
}; |
+class ToLengthStub final : public TurboFanCodeStub { |
+ public: |
+ explicit ToLengthStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
+ |
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
+ DEFINE_TURBOFAN_CODE_STUB(ToLength, TurboFanCodeStub); |
+}; |
+ |
class StoreInterceptorStub : public TurboFanCodeStub { |
public: |
explicit StoreInterceptorStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
@@ -3053,14 +3061,6 @@ class StringToNumberStub final : public PlatformCodeStub { |
DEFINE_PLATFORM_CODE_STUB(StringToNumber, PlatformCodeStub); |
}; |
-class ToLengthStub final : public PlatformCodeStub { |
- public: |
- explicit ToLengthStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
- |
- DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
- DEFINE_PLATFORM_CODE_STUB(ToLength, PlatformCodeStub); |
-}; |
- |
class ToStringStub final : public PlatformCodeStub { |
public: |