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

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

Issue 1353723002: [runtime] Initial step towards switching Execution::Call to callable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Handle sloppy mode api functions correctly. 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 ParameterCount actual(r0); 801 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
802 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper());
803 } 802 }
804 // Exit the JS frame and remove the parameters (except function), and 803 // Exit the JS frame and remove the parameters (except function), and
805 // return. 804 // return.
806 // Respect ABI stack constraint. 805 // Respect ABI stack constraint.
807 } 806 }
808 __ Jump(lr); 807 __ Jump(lr);
809 808
810 // r0: result 809 // r0: result
811 } 810 }
812 811
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1788 } 1787 }
1789 } 1788 }
1790 1789
1791 1790
1792 #undef __ 1791 #undef __
1793 1792
1794 } // namespace internal 1793 } // namespace internal
1795 } // namespace v8 1794 } // namespace v8
1796 1795
1797 #endif // V8_TARGET_ARCH_ARM 1796 #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