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

Unified Diff: src/x64/ic-x64.cc

Issue 8344045: Fast elements conversions in crankshaft using generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
Index: src/x64/ic-x64.cc
diff --git a/src/x64/ic-x64.cc b/src/x64/ic-x64.cc
index c398723ab1927fa52a15f856867acdff1fa91f06..8c9f6470c881f249c433b6d825fe693080e5d5f2 100644
--- a/src/x64/ic-x64.cc
+++ b/src/x64/ic-x64.cc
@@ -1608,11 +1608,8 @@ void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) {
// -----------------------------------
// Must return the modified receiver in eax.
- __ pop(rbx);
- __ push(rdx);
- __ push(rbx); // return address
-
- __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1);
+ FastElementsConversionStub::GenerateSmiOnlyToDouble(
+ masm, FastElementsConversionStub::TRANSITION_ONLY);
}
@@ -1624,11 +1621,8 @@ void KeyedStoreIC::GenerateTransitionElementsDoubleToObject(
// -----------------------------------
// Must return the modified receiver in eax.
- __ pop(rbx);
- __ push(rdx);
- __ push(rbx); // return address
-
- __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1);
+ FastElementsConversionStub::GenerateDoubleToObject(
+ masm, FastElementsConversionStub::TRANSITION_ONLY);
}

Powered by Google App Engine
This is Rietveld 408576698