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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 } | 2464 } |
2465 __ bind(&convert_to_object); | 2465 __ bind(&convert_to_object); |
2466 { | 2466 { |
2467 // Convert receiver using ToObject. | 2467 // Convert receiver using ToObject. |
2468 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2468 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
2469 // in the fast case? (fall back to AllocateInNewSpace?) | 2469 // in the fast case? (fall back to AllocateInNewSpace?) |
2470 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 2470 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
2471 __ SmiTag(r2); | 2471 __ SmiTag(r2); |
2472 __ Push(r2, r3); | 2472 __ Push(r2, r3); |
2473 __ LoadRR(r2, r5); | 2473 __ LoadRR(r2, r5); |
| 2474 __ Push(cp); |
2474 ToObjectStub stub(masm->isolate()); | 2475 ToObjectStub stub(masm->isolate()); |
2475 __ CallStub(&stub); | 2476 __ CallStub(&stub); |
| 2477 __ Pop(cp); |
2476 __ LoadRR(r5, r2); | 2478 __ LoadRR(r5, r2); |
2477 __ Pop(r2, r3); | 2479 __ Pop(r2, r3); |
2478 __ SmiUntag(r2); | 2480 __ SmiUntag(r2); |
2479 } | 2481 } |
2480 __ LoadP(r4, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); | 2482 __ LoadP(r4, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); |
2481 __ bind(&convert_receiver); | 2483 __ bind(&convert_receiver); |
2482 } | 2484 } |
2483 __ ShiftLeftP(r6, r2, Operand(kPointerSizeLog2)); | 2485 __ ShiftLeftP(r6, r2, Operand(kPointerSizeLog2)); |
2484 __ StoreP(r5, MemOperand(sp, r6)); | 2486 __ StoreP(r5, MemOperand(sp, r6)); |
2485 } | 2487 } |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3018 __ bkpt(0); | 3020 __ bkpt(0); |
3019 } | 3021 } |
3020 } | 3022 } |
3021 | 3023 |
3022 #undef __ | 3024 #undef __ |
3023 | 3025 |
3024 } // namespace internal | 3026 } // namespace internal |
3025 } // namespace v8 | 3027 } // namespace v8 |
3026 | 3028 |
3027 #endif // V8_TARGET_ARCH_S390 | 3029 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |