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 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 FrameScope scope(masm, StackFrame::INTERNAL); | 2512 FrameScope scope(masm, StackFrame::INTERNAL); |
2513 __ SmiTag(x0); | 2513 __ SmiTag(x0); |
2514 __ Push(x0, x1); | 2514 __ Push(x0, x1); |
2515 __ Mov(x0, x3); | 2515 __ Mov(x0, x3); |
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 __ Mov(x3, x0); | 2520 __ Mov(x3, x0); |
2521 __ Pop(x1, x0); | 2521 __ Pop(x1, x0); |
2522 __ SmiUntag(x0); | 2522 __ SmiUntag(x0); |
2523 } | 2523 } |
2524 __ Ldr(x2, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); | 2524 __ Ldr(x2, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); |
2525 __ Bind(&convert_receiver); | 2525 __ Bind(&convert_receiver); |
2526 } | 2526 } |
2527 __ Poke(x3, Operand(x0, LSL, kXRegSizeLog2)); | 2527 __ Poke(x3, Operand(x0, LSL, kXRegSizeLog2)); |
2528 } | 2528 } |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3024 __ Unreachable(); | 3024 __ Unreachable(); |
3025 } | 3025 } |
3026 } | 3026 } |
3027 | 3027 |
3028 #undef __ | 3028 #undef __ |
3029 | 3029 |
3030 } // namespace internal | 3030 } // namespace internal |
3031 } // namespace v8 | 3031 } // namespace v8 |
3032 | 3032 |
3033 #endif // V8_TARGET_ARCH_ARM | 3033 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |