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

Side by Side Diff: src/builtins/mips64/builtins-mips64.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 unified diff | Download patch
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 __ SmiTag(t0); 293 __ SmiTag(t0);
294 __ EnterBuiltinFrame(cp, a1, t0); 294 __ EnterBuiltinFrame(cp, a1, t0);
295 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); 295 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET);
296 __ LeaveBuiltinFrame(cp, a1, t0); 296 __ LeaveBuiltinFrame(cp, a1, t0);
297 __ SmiUntag(t0); 297 __ SmiUntag(t0);
298 } 298 }
299 __ jmp(&drop_frame_and_ret); 299 __ jmp(&drop_frame_and_ret);
300 300
301 // 3b. Convert symbol in a0 to a string. 301 // 3b. Convert symbol in a0 to a string.
302 __ bind(&symbol_descriptive_string); 302 __ bind(&symbol_descriptive_string);
303 { 303 __ Ld(v0, FieldMemOperand(a0, Symbol::kDescriptiveStringOffset));
304 __ Dlsa(sp, sp, t0, kPointerSizeLog2); 304 // Fall through.
305 __ Drop(1);
306 __ Push(a0);
307 __ TailCallRuntime(Runtime::kSymbolDescriptiveString);
308 }
309 305
310 __ bind(&drop_frame_and_ret); 306 __ bind(&drop_frame_and_ret);
311 { 307 {
312 __ Dlsa(sp, sp, t0, kPointerSizeLog2); 308 __ Dlsa(sp, sp, t0, kPointerSizeLog2);
313 __ DropAndRet(1); 309 __ DropAndRet(1);
314 } 310 }
315 } 311 }
316 312
317 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { 313 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) {
318 // ----------- S t a t e ------------- 314 // ----------- S t a t e -------------
(...skipping 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); 3147 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag));
3152 __ Jump(at); 3148 __ Jump(at);
3153 } 3149 }
3154 3150
3155 #undef __ 3151 #undef __
3156 3152
3157 } // namespace internal 3153 } // namespace internal
3158 } // namespace v8 3154 } // namespace v8
3159 3155
3160 #endif // V8_TARGET_ARCH_MIPS64 3156 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698