Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: src/arm/builtins-arm.cc

Issue 1346763005: Revert of [runtime] Initial step towards switching Execution::Call to callable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 } 791 }
792 792
793 // Invoke the code and pass argc as r0. 793 // Invoke the code and pass argc as r0.
794 __ mov(r0, Operand(r3)); 794 __ mov(r0, Operand(r3));
795 if (is_construct) { 795 if (is_construct) {
796 // No type feedback cell is available 796 // No type feedback cell is available
797 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); 797 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
798 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); 798 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS);
799 __ CallStub(&stub); 799 __ CallStub(&stub);
800 } else { 800 } else {
801 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); 801 ParameterCount actual(r0);
802 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper());
802 } 803 }
803 // Exit the JS frame and remove the parameters (except function), and 804 // Exit the JS frame and remove the parameters (except function), and
804 // return. 805 // return.
805 // Respect ABI stack constraint. 806 // Respect ABI stack constraint.
806 } 807 }
807 __ Jump(lr); 808 __ Jump(lr);
808 809
809 // r0: result 810 // r0: result
810 } 811 }
811 812
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 } 1788 }
1788 } 1789 }
1789 1790
1790 1791
1791 #undef __ 1792 #undef __
1792 1793
1793 } // namespace internal 1794 } // namespace internal
1794 } // namespace v8 1795 } // namespace v8
1795 1796
1796 #endif // V8_TARGET_ARCH_ARM 1797 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698