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