| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 } | 2393 } |
| 2394 __ bind(&convert_to_object); | 2394 __ bind(&convert_to_object); |
| 2395 { | 2395 { |
| 2396 // Convert receiver using ToObject. | 2396 // Convert receiver using ToObject. |
| 2397 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2397 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
| 2398 // in the fast case? (fall back to AllocateInNewSpace?) | 2398 // in the fast case? (fall back to AllocateInNewSpace?) |
| 2399 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 2399 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
| 2400 __ SmiTag(r0); | 2400 __ SmiTag(r0); |
| 2401 __ Push(r0, r1); | 2401 __ Push(r0, r1); |
| 2402 __ mov(r0, r3); | 2402 __ mov(r0, r3); |
| 2403 __ Push(cp); |
| 2403 ToObjectStub stub(masm->isolate()); | 2404 ToObjectStub stub(masm->isolate()); |
| 2404 __ CallStub(&stub); | 2405 __ CallStub(&stub); |
| 2406 __ Pop(cp); |
| 2405 __ mov(r3, r0); | 2407 __ mov(r3, r0); |
| 2406 __ Pop(r0, r1); | 2408 __ Pop(r0, r1); |
| 2407 __ SmiUntag(r0); | 2409 __ SmiUntag(r0); |
| 2408 } | 2410 } |
| 2409 __ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); | 2411 __ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); |
| 2410 __ bind(&convert_receiver); | 2412 __ bind(&convert_receiver); |
| 2411 } | 2413 } |
| 2412 __ str(r3, MemOperand(sp, r0, LSL, kPointerSizeLog2)); | 2414 __ str(r3, MemOperand(sp, r0, LSL, kPointerSizeLog2)); |
| 2413 } | 2415 } |
| 2414 __ bind(&done_convert); | 2416 __ bind(&done_convert); |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2919 __ bkpt(0); | 2921 __ bkpt(0); |
| 2920 } | 2922 } |
| 2921 } | 2923 } |
| 2922 | 2924 |
| 2923 #undef __ | 2925 #undef __ |
| 2924 | 2926 |
| 2925 } // namespace internal | 2927 } // namespace internal |
| 2926 } // namespace v8 | 2928 } // namespace v8 |
| 2927 | 2929 |
| 2928 #endif // V8_TARGET_ARCH_ARM | 2930 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |