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 __ Ld(v0, FieldMemOperand(a0, Symbol::kDescriptiveStringOffset)); | 303 { |
304 // Fall through. | 304 __ Dlsa(sp, sp, t0, kPointerSizeLog2); |
| 305 __ Drop(1); |
| 306 __ Push(a0); |
| 307 __ TailCallRuntime(Runtime::kSymbolDescriptiveString); |
| 308 } |
305 | 309 |
306 __ bind(&drop_frame_and_ret); | 310 __ bind(&drop_frame_and_ret); |
307 { | 311 { |
308 __ Dlsa(sp, sp, t0, kPointerSizeLog2); | 312 __ Dlsa(sp, sp, t0, kPointerSizeLog2); |
309 __ DropAndRet(1); | 313 __ DropAndRet(1); |
310 } | 314 } |
311 } | 315 } |
312 | 316 |
313 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { | 317 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
314 // ----------- S t a t e ------------- | 318 // ----------- S t a t e ------------- |
(...skipping 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3147 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3151 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
3148 __ Jump(at); | 3152 __ Jump(at); |
3149 } | 3153 } |
3150 | 3154 |
3151 #undef __ | 3155 #undef __ |
3152 | 3156 |
3153 } // namespace internal | 3157 } // namespace internal |
3154 } // namespace v8 | 3158 } // namespace v8 |
3155 | 3159 |
3156 #endif // V8_TARGET_ARCH_MIPS64 | 3160 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |