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 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2500 __ bind(&convert_to_object); | 2500 __ bind(&convert_to_object); |
2501 { | 2501 { |
2502 // Convert receiver using ToObject. | 2502 // Convert receiver using ToObject. |
2503 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2503 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
2504 // in the fast case? (fall back to AllocateInNewSpace?) | 2504 // in the fast case? (fall back to AllocateInNewSpace?) |
2505 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 2505 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
2506 __ SmiTag(r3); | 2506 __ SmiTag(r3); |
2507 __ Push(r3, r4); | 2507 __ Push(r3, r4); |
2508 __ mr(r3, r6); | 2508 __ mr(r3, r6); |
2509 __ Push(cp); | 2509 __ Push(cp); |
2510 ToObjectStub stub(masm->isolate()); | 2510 __ Call(masm->isolate()->builtins()->ToObject(), |
2511 __ CallStub(&stub); | 2511 RelocInfo::CODE_TARGET); |
2512 __ Pop(cp); | 2512 __ Pop(cp); |
2513 __ mr(r6, r3); | 2513 __ mr(r6, r3); |
2514 __ Pop(r3, r4); | 2514 __ Pop(r3, r4); |
2515 __ SmiUntag(r3); | 2515 __ SmiUntag(r3); |
2516 } | 2516 } |
2517 __ LoadP(r5, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); | 2517 __ LoadP(r5, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); |
2518 __ bind(&convert_receiver); | 2518 __ bind(&convert_receiver); |
2519 } | 2519 } |
2520 __ ShiftLeftImm(r7, r3, Operand(kPointerSizeLog2)); | 2520 __ ShiftLeftImm(r7, r3, Operand(kPointerSizeLog2)); |
2521 __ StorePX(r6, MemOperand(sp, r7)); | 2521 __ StorePX(r6, MemOperand(sp, r7)); |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3012 __ CallRuntime(Runtime::kThrowStackOverflow); | 3012 __ CallRuntime(Runtime::kThrowStackOverflow); |
3013 __ bkpt(0); | 3013 __ bkpt(0); |
3014 } | 3014 } |
3015 } | 3015 } |
3016 | 3016 |
3017 #undef __ | 3017 #undef __ |
3018 } // namespace internal | 3018 } // namespace internal |
3019 } // namespace v8 | 3019 } // namespace v8 |
3020 | 3020 |
3021 #endif // V8_TARGET_ARCH_PPC | 3021 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |