OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |