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

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

Issue 2155633002: [builtins] remove redundant builtins lists. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: attempt to fix gc mole Created 4 years, 5 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/builtins/arm/builtins-arm.cc ('k') | src/builtins/builtins.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 11 matching lines...) Expand all
22 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result); 22 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result);
23 } 23 }
24 24
25 // Load the built-in InternalArray function from the current context. 25 // Load the built-in InternalArray function from the current context.
26 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, 26 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm,
27 Register result) { 27 Register result) {
28 // Load the InternalArray function from the native context. 28 // Load the InternalArray function from the native context.
29 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result); 29 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result);
30 } 30 }
31 31
32 void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id, 32 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address,
33 ExitFrameType exit_frame_type) { 33 ExitFrameType exit_frame_type) {
34 // ----------- S t a t e ------------- 34 // ----------- S t a t e -------------
35 // -- x0 : number of arguments excluding receiver 35 // -- x0 : number of arguments excluding receiver
36 // -- x1 : target 36 // -- x1 : target
37 // -- x3 : new target 37 // -- x3 : new target
38 // -- sp[0] : last argument 38 // -- sp[0] : last argument
39 // -- ... 39 // -- ...
40 // -- sp[4 * (argc - 1)] : first argument 40 // -- sp[4 * (argc - 1)] : first argument
41 // -- sp[4 * argc] : receiver 41 // -- sp[4 * argc] : receiver
42 // ----------------------------------- 42 // -----------------------------------
43 __ AssertFunction(x1); 43 __ AssertFunction(x1);
44 44
45 // Make sure we operate in the context of the called function (for example 45 // Make sure we operate in the context of the called function (for example
46 // ConstructStubs implemented in C++ will be run in the context of the caller 46 // ConstructStubs implemented in C++ will be run in the context of the caller
47 // instead of the callee, due to the way that [[Construct]] is defined for 47 // instead of the callee, due to the way that [[Construct]] is defined for
48 // ordinary functions). 48 // ordinary functions).
49 __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset)); 49 __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset));
50 50
51 // JumpToExternalReference expects x0 to contain the number of arguments 51 // JumpToExternalReference expects x0 to contain the number of arguments
52 // including the receiver and the extra arguments. 52 // including the receiver and the extra arguments.
53 const int num_extra_args = 3; 53 const int num_extra_args = 3;
54 __ Add(x0, x0, num_extra_args + 1); 54 __ Add(x0, x0, num_extra_args + 1);
55 55
56 // Insert extra arguments. 56 // Insert extra arguments.
57 __ SmiTag(x0); 57 __ SmiTag(x0);
58 __ Push(x0, x1, x3); 58 __ Push(x0, x1, x3);
59 __ SmiUntag(x0); 59 __ SmiUntag(x0);
60 60
61 __ JumpToExternalReference(ExternalReference(id, masm->isolate()), 61 __ JumpToExternalReference(ExternalReference(address, masm->isolate()),
62 exit_frame_type == BUILTIN_EXIT); 62 exit_frame_type == BUILTIN_EXIT);
63 } 63 }
64 64
65 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { 65 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) {
66 // ----------- S t a t e ------------- 66 // ----------- S t a t e -------------
67 // -- x0 : number of arguments 67 // -- x0 : number of arguments
68 // -- lr : return address 68 // -- lr : return address
69 // -- sp[...]: constructor arguments 69 // -- sp[...]: constructor arguments
70 // ----------------------------------- 70 // -----------------------------------
71 ASM_LOCATION("Builtins::Generate_InternalArrayCode"); 71 ASM_LOCATION("Builtins::Generate_InternalArrayCode");
(...skipping 2927 matching lines...) Expand 10 before | Expand all | Expand 10 after
2999 __ Unreachable(); 2999 __ Unreachable();
3000 } 3000 }
3001 } 3001 }
3002 3002
3003 #undef __ 3003 #undef __
3004 3004
3005 } // namespace internal 3005 } // namespace internal
3006 } // namespace v8 3006 } // namespace v8
3007 3007
3008 #endif // V8_TARGET_ARCH_ARM 3008 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/builtins/arm/builtins-arm.cc ('k') | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698