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 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2448 __ bind(&convert_to_object); | 2448 __ bind(&convert_to_object); |
2449 { | 2449 { |
2450 // Convert receiver using ToObject. | 2450 // Convert receiver using ToObject. |
2451 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2451 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
2452 // in the fast case? (fall back to AllocateInNewSpace?) | 2452 // in the fast case? (fall back to AllocateInNewSpace?) |
2453 FrameScope scope(masm, StackFrame::INTERNAL); | 2453 FrameScope scope(masm, StackFrame::INTERNAL); |
2454 __ sll(a0, a0, kSmiTagSize); // Smi tagged. | 2454 __ sll(a0, a0, kSmiTagSize); // Smi tagged. |
2455 __ Push(a0, a1); | 2455 __ Push(a0, a1); |
2456 __ mov(a0, a3); | 2456 __ mov(a0, a3); |
2457 __ Push(cp); | 2457 __ Push(cp); |
2458 ToObjectStub stub(masm->isolate()); | 2458 __ Call(masm->isolate()->builtins()->ToObject(), |
2459 __ CallStub(&stub); | 2459 RelocInfo::CODE_TARGET); |
2460 __ Pop(cp); | 2460 __ Pop(cp); |
2461 __ mov(a3, v0); | 2461 __ mov(a3, v0); |
2462 __ Pop(a0, a1); | 2462 __ Pop(a0, a1); |
2463 __ sra(a0, a0, kSmiTagSize); // Un-tag. | 2463 __ sra(a0, a0, kSmiTagSize); // Un-tag. |
2464 } | 2464 } |
2465 __ lw(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 2465 __ lw(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
2466 __ bind(&convert_receiver); | 2466 __ bind(&convert_receiver); |
2467 } | 2467 } |
2468 __ Lsa(at, sp, a0, kPointerSizeLog2); | 2468 __ Lsa(at, sp, a0, kPointerSizeLog2); |
2469 __ sw(a3, MemOperand(at)); | 2469 __ sw(a3, MemOperand(at)); |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2997 __ break_(0xCC); | 2997 __ break_(0xCC); |
2998 } | 2998 } |
2999 } | 2999 } |
3000 | 3000 |
3001 #undef __ | 3001 #undef __ |
3002 | 3002 |
3003 } // namespace internal | 3003 } // namespace internal |
3004 } // namespace v8 | 3004 } // namespace v8 |
3005 | 3005 |
3006 #endif // V8_TARGET_ARCH_MIPS | 3006 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |