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

Unified Diff: src/x87/code-stubs-x87.cc

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/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x87/code-stubs-x87.cc
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc
index 83d0844061dff5fd17f2e765edd7f033d0cec0e4..c9878a6f56319fedda828f37e973ca5e5c1e5900 100644
--- a/src/x87/code-stubs-x87.cc
+++ b/src/x87/code-stubs-x87.cc
@@ -2383,25 +2383,6 @@ void StringToNumberStub::Generate(MacroAssembler* masm) {
__ TailCallRuntime(Runtime::kStringToNumber);
}
-void ToLengthStub::Generate(MacroAssembler* masm) {
- // The ToLength stub takes on argument in eax.
- Label not_smi, positive_smi;
- __ JumpIfNotSmi(eax, &not_smi, Label::kNear);
- STATIC_ASSERT(kSmiTag == 0);
- __ test(eax, eax);
- __ j(greater_equal, &positive_smi, Label::kNear);
- __ xor_(eax, eax);
- __ bind(&positive_smi);
- __ Ret();
- __ bind(&not_smi);
-
- __ pop(ecx); // Pop return address.
- __ push(eax); // Push argument.
- __ push(ecx); // Push return address.
- __ TailCallRuntime(Runtime::kToLength);
-}
-
-
void ToStringStub::Generate(MacroAssembler* masm) {
// The ToString stub takes one argument in eax.
Label is_number;
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698