| 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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2856 | 2856 |
| 2857 // Touch up the stack with the resolved function. | 2857 // Touch up the stack with the resolved function. |
| 2858 __ str(r0, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 2858 __ str(r0, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
| 2859 | 2859 |
| 2860 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); | 2860 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); |
| 2861 | 2861 |
| 2862 // Record source position for debugger. | 2862 // Record source position for debugger. |
| 2863 SetCallPosition(expr); | 2863 SetCallPosition(expr); |
| 2864 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 2864 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
| 2865 __ mov(r0, Operand(arg_count)); | 2865 __ mov(r0, Operand(arg_count)); |
| 2866 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 2866 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny, |
| 2867 expr->tail_call_mode()), |
| 2868 RelocInfo::CODE_TARGET); |
| 2867 RecordJSReturnSite(expr); | 2869 RecordJSReturnSite(expr); |
| 2868 // Restore context register. | 2870 // Restore context register. |
| 2869 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2871 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 2870 context()->DropAndPlug(1, r0); | 2872 context()->DropAndPlug(1, r0); |
| 2871 } | 2873 } |
| 2872 | 2874 |
| 2873 | 2875 |
| 2874 void FullCodeGenerator::VisitCallNew(CallNew* expr) { | 2876 void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
| 2875 Comment cmnt(masm_, "[ CallNew"); | 2877 Comment cmnt(masm_, "[ CallNew"); |
| 2876 // According to ECMA-262, section 11.2.2, page 44, the function | 2878 // According to ECMA-262, section 11.2.2, page 44, the function |
| (...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4564 DCHECK(interrupt_address == | 4566 DCHECK(interrupt_address == |
| 4565 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4567 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4566 return OSR_AFTER_STACK_CHECK; | 4568 return OSR_AFTER_STACK_CHECK; |
| 4567 } | 4569 } |
| 4568 | 4570 |
| 4569 | 4571 |
| 4570 } // namespace internal | 4572 } // namespace internal |
| 4571 } // namespace v8 | 4573 } // namespace v8 |
| 4572 | 4574 |
| 4573 #endif // V8_TARGET_ARCH_ARM | 4575 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |