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