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

Side by Side Diff: src/builtins/mips/builtins-mips.cc

Issue 2903533002: Revert of [es2015] Precompute the descriptive string for symbols. (Closed)
Patch Set: 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/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 __ SmiTag(t0); 291 __ SmiTag(t0);
292 __ EnterBuiltinFrame(cp, a1, t0); 292 __ EnterBuiltinFrame(cp, a1, t0);
293 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); 293 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET);
294 __ LeaveBuiltinFrame(cp, a1, t0); 294 __ LeaveBuiltinFrame(cp, a1, t0);
295 __ SmiUntag(t0); 295 __ SmiUntag(t0);
296 } 296 }
297 __ jmp(&drop_frame_and_ret); 297 __ jmp(&drop_frame_and_ret);
298 298
299 // 3b. Convert symbol in a0 to a string. 299 // 3b. Convert symbol in a0 to a string.
300 __ bind(&symbol_descriptive_string); 300 __ bind(&symbol_descriptive_string);
301 __ lw(v0, FieldMemOperand(a0, Symbol::kDescriptiveStringOffset)); 301 {
302 // Fall through. 302 __ Lsa(sp, sp, t0, kPointerSizeLog2);
303 __ Drop(1);
304 __ Push(a0);
305 __ TailCallRuntime(Runtime::kSymbolDescriptiveString);
306 }
303 307
304 __ bind(&drop_frame_and_ret); 308 __ bind(&drop_frame_and_ret);
305 { 309 {
306 __ Lsa(sp, sp, t0, kPointerSizeLog2); 310 __ Lsa(sp, sp, t0, kPointerSizeLog2);
307 __ DropAndRet(1); 311 __ DropAndRet(1);
308 } 312 }
309 } 313 }
310 314
311 // static 315 // static
312 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { 316 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) {
(...skipping 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after
3108 // Now jump to the instructions of the returned code object. 3112 // Now jump to the instructions of the returned code object.
3109 __ Jump(at, v0, Code::kHeaderSize - kHeapObjectTag); 3113 __ Jump(at, v0, Code::kHeaderSize - kHeapObjectTag);
3110 } 3114 }
3111 3115
3112 #undef __ 3116 #undef __
3113 3117
3114 } // namespace internal 3118 } // namespace internal
3115 } // namespace v8 3119 } // namespace v8
3116 3120
3117 #endif // V8_TARGET_ARCH_MIPS 3121 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/builtins/ia32/builtins-ia32.cc ('k') | src/builtins/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698