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 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 } | 2402 } |
2403 __ bind(&convert_to_object); | 2403 __ bind(&convert_to_object); |
2404 { | 2404 { |
2405 // Convert receiver using ToObject. | 2405 // Convert receiver using ToObject. |
2406 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2406 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
2407 // in the fast case? (fall back to AllocateInNewSpace?) | 2407 // in the fast case? (fall back to AllocateInNewSpace?) |
2408 FrameScope scope(masm, StackFrame::INTERNAL); | 2408 FrameScope scope(masm, StackFrame::INTERNAL); |
2409 __ SmiTag(a0); | 2409 __ SmiTag(a0); |
2410 __ Push(a0, a1); | 2410 __ Push(a0, a1); |
2411 __ mov(a0, a3); | 2411 __ mov(a0, a3); |
| 2412 __ Push(cp); |
2412 ToObjectStub stub(masm->isolate()); | 2413 ToObjectStub stub(masm->isolate()); |
2413 __ CallStub(&stub); | 2414 __ CallStub(&stub); |
| 2415 __ Pop(cp); |
2414 __ mov(a3, v0); | 2416 __ mov(a3, v0); |
2415 __ Pop(a0, a1); | 2417 __ Pop(a0, a1); |
2416 __ SmiUntag(a0); | 2418 __ SmiUntag(a0); |
2417 } | 2419 } |
2418 __ ld(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 2420 __ ld(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
2419 __ bind(&convert_receiver); | 2421 __ bind(&convert_receiver); |
2420 } | 2422 } |
2421 __ Dlsa(at, sp, a0, kPointerSizeLog2); | 2423 __ Dlsa(at, sp, a0, kPointerSizeLog2); |
2422 __ sd(a3, MemOperand(at)); | 2424 __ sd(a3, MemOperand(at)); |
2423 } | 2425 } |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2997 __ break_(0xCC); | 2999 __ break_(0xCC); |
2998 } | 3000 } |
2999 } | 3001 } |
3000 | 3002 |
3001 #undef __ | 3003 #undef __ |
3002 | 3004 |
3003 } // namespace internal | 3005 } // namespace internal |
3004 } // namespace v8 | 3006 } // namespace v8 |
3005 | 3007 |
3006 #endif // V8_TARGET_ARCH_MIPS64 | 3008 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |