| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 2439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2450 } | 2450 } |
| 2451 __ bind(&convert_to_object); | 2451 __ bind(&convert_to_object); |
| 2452 { | 2452 { |
| 2453 // Convert receiver using ToObject. | 2453 // Convert receiver using ToObject. |
| 2454 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2454 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
| 2455 // in the fast case? (fall back to AllocateInNewSpace?) | 2455 // in the fast case? (fall back to AllocateInNewSpace?) |
| 2456 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 2456 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
| 2457 __ SmiTag(r3); | 2457 __ SmiTag(r3); |
| 2458 __ Push(r3, r4); | 2458 __ Push(r3, r4); |
| 2459 __ mr(r3, r6); | 2459 __ mr(r3, r6); |
| 2460 __ Push(cp); |
| 2460 ToObjectStub stub(masm->isolate()); | 2461 ToObjectStub stub(masm->isolate()); |
| 2461 __ CallStub(&stub); | 2462 __ CallStub(&stub); |
| 2463 __ Pop(cp); |
| 2462 __ mr(r6, r3); | 2464 __ mr(r6, r3); |
| 2463 __ Pop(r3, r4); | 2465 __ Pop(r3, r4); |
| 2464 __ SmiUntag(r3); | 2466 __ SmiUntag(r3); |
| 2465 } | 2467 } |
| 2466 __ LoadP(r5, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); | 2468 __ LoadP(r5, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); |
| 2467 __ bind(&convert_receiver); | 2469 __ bind(&convert_receiver); |
| 2468 } | 2470 } |
| 2469 __ ShiftLeftImm(r7, r3, Operand(kPointerSizeLog2)); | 2471 __ ShiftLeftImm(r7, r3, Operand(kPointerSizeLog2)); |
| 2470 __ StorePX(r6, MemOperand(sp, r7)); | 2472 __ StorePX(r6, MemOperand(sp, r7)); |
| 2471 } | 2473 } |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3002 __ CallRuntime(Runtime::kThrowStackOverflow); | 3004 __ CallRuntime(Runtime::kThrowStackOverflow); |
| 3003 __ bkpt(0); | 3005 __ bkpt(0); |
| 3004 } | 3006 } |
| 3005 } | 3007 } |
| 3006 | 3008 |
| 3007 #undef __ | 3009 #undef __ |
| 3008 } // namespace internal | 3010 } // namespace internal |
| 3009 } // namespace v8 | 3011 } // namespace v8 |
| 3010 | 3012 |
| 3011 #endif // V8_TARGET_ARCH_PPC | 3013 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |