| 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2848 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { | 2848 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { |
| 2849 // Load the arguments. | 2849 // Load the arguments. |
| 2850 ZoneList<Expression*>* args = expr->arguments(); | 2850 ZoneList<Expression*>* args = expr->arguments(); |
| 2851 int arg_count = args->length(); | 2851 int arg_count = args->length(); |
| 2852 for (int i = 0; i < arg_count; i++) { | 2852 for (int i = 0; i < arg_count; i++) { |
| 2853 VisitForStackValue(args->at(i)); | 2853 VisitForStackValue(args->at(i)); |
| 2854 } | 2854 } |
| 2855 | 2855 |
| 2856 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 2856 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
| 2857 SetCallPosition(expr); | 2857 SetCallPosition(expr); |
| 2858 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, mode).code(); | 2858 Handle<Code> ic = |
| 2859 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
| 2860 .code(); |
| 2859 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackICSlot())); | 2861 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackICSlot())); |
| 2860 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); | 2862 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); |
| 2861 // Don't assign a type feedback id to the IC, since type feedback is provided | 2863 // Don't assign a type feedback id to the IC, since type feedback is provided |
| 2862 // by the vector above. | 2864 // by the vector above. |
| 2863 CallIC(ic); | 2865 CallIC(ic); |
| 2864 | 2866 |
| 2865 RecordJSReturnSite(expr); | 2867 RecordJSReturnSite(expr); |
| 2866 // Restore context register. | 2868 // Restore context register. |
| 2867 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2869 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 2868 context()->DropAndPlug(1, r3); | 2870 context()->DropAndPlug(1, r3); |
| (...skipping 1920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4789 return ON_STACK_REPLACEMENT; | 4791 return ON_STACK_REPLACEMENT; |
| 4790 } | 4792 } |
| 4791 | 4793 |
| 4792 DCHECK(interrupt_address == | 4794 DCHECK(interrupt_address == |
| 4793 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4795 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 4794 return OSR_AFTER_STACK_CHECK; | 4796 return OSR_AFTER_STACK_CHECK; |
| 4795 } | 4797 } |
| 4796 } // namespace internal | 4798 } // namespace internal |
| 4797 } // namespace v8 | 4799 } // namespace v8 |
| 4798 #endif // V8_TARGET_ARCH_PPC | 4800 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |