| 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 { | 301 __ lw(v0, FieldMemOperand(a0, Symbol::kDescriptiveStringOffset)); |
| 302 __ Lsa(sp, sp, t0, kPointerSizeLog2); | 302 // Fall through. |
| 303 __ Drop(1); | |
| 304 __ Push(a0); | |
| 305 __ TailCallRuntime(Runtime::kSymbolDescriptiveString); | |
| 306 } | |
| 307 | 303 |
| 308 __ bind(&drop_frame_and_ret); | 304 __ bind(&drop_frame_and_ret); |
| 309 { | 305 { |
| 310 __ Lsa(sp, sp, t0, kPointerSizeLog2); | 306 __ Lsa(sp, sp, t0, kPointerSizeLog2); |
| 311 __ DropAndRet(1); | 307 __ DropAndRet(1); |
| 312 } | 308 } |
| 313 } | 309 } |
| 314 | 310 |
| 315 // static | 311 // static |
| 316 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { | 312 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
| (...skipping 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3112 // Now jump to the instructions of the returned code object. | 3108 // Now jump to the instructions of the returned code object. |
| 3113 __ Jump(at, v0, Code::kHeaderSize - kHeapObjectTag); | 3109 __ Jump(at, v0, Code::kHeaderSize - kHeapObjectTag); |
| 3114 } | 3110 } |
| 3115 | 3111 |
| 3116 #undef __ | 3112 #undef __ |
| 3117 | 3113 |
| 3118 } // namespace internal | 3114 } // namespace internal |
| 3119 } // namespace v8 | 3115 } // namespace v8 |
| 3120 | 3116 |
| 3121 #endif // V8_TARGET_ARCH_MIPS | 3117 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |