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

Side by Side Diff: src/arm64/code-stubs-arm64.cc

Issue 1211333003: Make context register implicit for CallInterfaceDescriptors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Platform ports Created 5 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
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 #define __ ACCESS_MASM(masm) 96 #define __ ACCESS_MASM(masm)
97 97
98 98
99 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, 99 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
100 ExternalReference miss) { 100 ExternalReference miss) {
101 // Update the static counter each time a new code stub is generated. 101 // Update the static counter each time a new code stub is generated.
102 isolate()->counters()->code_stubs()->Increment(); 102 isolate()->counters()->code_stubs()->Increment();
103 103
104 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); 104 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor();
105 int param_count = descriptor.GetEnvironmentParameterCount(); 105 int param_count = descriptor.GetRegisterParameterCount();
106 { 106 {
107 // Call the runtime system in a fresh internal frame. 107 // Call the runtime system in a fresh internal frame.
108 FrameScope scope(masm, StackFrame::INTERNAL); 108 FrameScope scope(masm, StackFrame::INTERNAL);
109 DCHECK((param_count == 0) || 109 DCHECK((param_count == 0) ||
110 x0.Is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); 110 x0.Is(descriptor.GetRegisterParameter(param_count - 1)));
111 111
112 // Push arguments 112 // Push arguments
113 MacroAssembler::PushPopQueue queue(masm); 113 MacroAssembler::PushPopQueue queue(masm);
114 for (int i = 0; i < param_count; ++i) { 114 for (int i = 0; i < param_count; ++i) {
115 queue.Queue(descriptor.GetEnvironmentParameterRegister(i)); 115 queue.Queue(descriptor.GetRegisterParameter(i));
116 } 116 }
117 queue.PushQueued(); 117 queue.PushQueued();
118 118
119 __ CallExternalReference(miss, param_count); 119 __ CallExternalReference(miss, param_count);
120 } 120 }
121 121
122 __ Ret(); 122 __ Ret();
123 } 123 }
124 124
125 125
(...skipping 5700 matching lines...) Expand 10 before | Expand all | Expand 10 after
5826 MemOperand(fp, 6 * kPointerSize), NULL); 5826 MemOperand(fp, 6 * kPointerSize), NULL);
5827 } 5827 }
5828 5828
5829 5829
5830 #undef __ 5830 #undef __
5831 5831
5832 } // namespace internal 5832 } // namespace internal
5833 } // namespace v8 5833 } // namespace v8
5834 5834
5835 #endif // V8_TARGET_ARCH_ARM64 5835 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698