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

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

Issue 2900703002: [es2015] Precompute the descriptive string for symbols. (Closed)
Patch Set: Address feedback. Created 3 years, 7 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/builtins/mips64/builtins-mips64.cc ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/x64/builtins-x64.cc
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc
index d4fb131afc79142508d97533d7f82ee3096de2f3..6b5ecdf792bbc5d05111c800abe8cb63aa14bfc2 100644
--- a/src/builtins/x64/builtins-x64.cc
+++ b/src/builtins/x64/builtins-x64.cc
@@ -1987,14 +1987,8 @@ void Builtins::Generate_StringConstructor(MacroAssembler* masm) {
// 3b. Convert symbol in rax to a string.
__ bind(&symbol_descriptive_string);
- {
- __ PopReturnAddressTo(rcx);
- __ SmiToInteger32(r8, r8);
- __ leap(rsp, Operand(rsp, r8, times_pointer_size, kPointerSize));
- __ Push(rax);
- __ PushReturnAddressFrom(rcx);
- __ TailCallRuntime(Runtime::kSymbolDescriptiveString);
- }
+ __ movp(rax, FieldOperand(rax, Symbol::kDescriptiveStringOffset));
+ // Fall through.
__ bind(&drop_frame_and_ret);
{
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698