OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2505 __ Bind(&convert_to_object); | 2505 __ Bind(&convert_to_object); |
2506 { | 2506 { |
2507 // Convert receiver using ToObject. | 2507 // Convert receiver using ToObject. |
2508 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2508 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
2509 // in the fast case? (fall back to AllocateInNewSpace?) | 2509 // in the fast case? (fall back to AllocateInNewSpace?) |
2510 FrameScope scope(masm, StackFrame::INTERNAL); | 2510 FrameScope scope(masm, StackFrame::INTERNAL); |
2511 __ SmiTag(x0); | 2511 __ SmiTag(x0); |
2512 __ Push(x0, x1); | 2512 __ Push(x0, x1); |
2513 __ Mov(x0, x3); | 2513 __ Mov(x0, x3); |
2514 __ Push(cp); | 2514 __ Push(cp); |
2515 ToObjectStub stub(masm->isolate()); | 2515 __ Call(masm->isolate()->builtins()->ToObject(), |
2516 __ CallStub(&stub); | 2516 RelocInfo::CODE_TARGET); |
2517 __ Pop(cp); | 2517 __ Pop(cp); |
2518 __ Mov(x3, x0); | 2518 __ Mov(x3, x0); |
2519 __ Pop(x1, x0); | 2519 __ Pop(x1, x0); |
2520 __ SmiUntag(x0); | 2520 __ SmiUntag(x0); |
2521 } | 2521 } |
2522 __ Ldr(x2, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); | 2522 __ Ldr(x2, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); |
2523 __ Bind(&convert_receiver); | 2523 __ Bind(&convert_receiver); |
2524 } | 2524 } |
2525 __ Poke(x3, Operand(x0, LSL, kXRegSizeLog2)); | 2525 __ Poke(x3, Operand(x0, LSL, kXRegSizeLog2)); |
2526 } | 2526 } |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3022 __ Unreachable(); | 3022 __ Unreachable(); |
3023 } | 3023 } |
3024 } | 3024 } |
3025 | 3025 |
3026 #undef __ | 3026 #undef __ |
3027 | 3027 |
3028 } // namespace internal | 3028 } // namespace internal |
3029 } // namespace v8 | 3029 } // namespace v8 |
3030 | 3030 |
3031 #endif // V8_TARGET_ARCH_ARM | 3031 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |