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 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2507 __ bind(&convert_to_object); | 2507 __ bind(&convert_to_object); |
2508 { | 2508 { |
2509 // Convert receiver using ToObject. | 2509 // Convert receiver using ToObject. |
2510 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2510 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
2511 // in the fast case? (fall back to AllocateInNewSpace?) | 2511 // in the fast case? (fall back to AllocateInNewSpace?) |
2512 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 2512 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
2513 __ SmiTag(r2); | 2513 __ SmiTag(r2); |
2514 __ Push(r2, r3); | 2514 __ Push(r2, r3); |
2515 __ LoadRR(r2, r5); | 2515 __ LoadRR(r2, r5); |
2516 __ Push(cp); | 2516 __ Push(cp); |
2517 ToObjectStub stub(masm->isolate()); | 2517 __ Call(masm->isolate()->builtins()->ToObject(), |
2518 __ CallStub(&stub); | 2518 RelocInfo::CODE_TARGET); |
2519 __ Pop(cp); | 2519 __ Pop(cp); |
2520 __ LoadRR(r5, r2); | 2520 __ LoadRR(r5, r2); |
2521 __ Pop(r2, r3); | 2521 __ Pop(r2, r3); |
2522 __ SmiUntag(r2); | 2522 __ SmiUntag(r2); |
2523 } | 2523 } |
2524 __ LoadP(r4, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); | 2524 __ LoadP(r4, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); |
2525 __ bind(&convert_receiver); | 2525 __ bind(&convert_receiver); |
2526 } | 2526 } |
2527 __ ShiftLeftP(r6, r2, Operand(kPointerSizeLog2)); | 2527 __ ShiftLeftP(r6, r2, Operand(kPointerSizeLog2)); |
2528 __ StoreP(r5, MemOperand(sp, r6)); | 2528 __ StoreP(r5, MemOperand(sp, r6)); |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3021 __ bkpt(0); | 3021 __ bkpt(0); |
3022 } | 3022 } |
3023 } | 3023 } |
3024 | 3024 |
3025 #undef __ | 3025 #undef __ |
3026 | 3026 |
3027 } // namespace internal | 3027 } // namespace internal |
3028 } // namespace v8 | 3028 } // namespace v8 |
3029 | 3029 |
3030 #endif // V8_TARGET_ARCH_S390 | 3030 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |