Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: src/code-stubs.h

Issue 1843933002: [stubs] Migrate ToLengthStub to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@MathCeil
Patch Set: REBASE Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698