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

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

Issue 1216543004: X87: Make context register implicit for CallInterfaceDescriptors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/x87/interface-descriptors-x87.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 #define __ ACCESS_MASM(masm) 100 #define __ ACCESS_MASM(masm)
101 101
102 102
103 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, 103 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm,
104 ExternalReference miss) { 104 ExternalReference miss) {
105 // Update the static counter each time a new code stub is generated. 105 // Update the static counter each time a new code stub is generated.
106 isolate()->counters()->code_stubs()->Increment(); 106 isolate()->counters()->code_stubs()->Increment();
107 107
108 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); 108 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor();
109 int param_count = descriptor.GetEnvironmentParameterCount(); 109 int param_count = descriptor.GetRegisterParameterCount();
110 { 110 {
111 // Call the runtime system in a fresh internal frame. 111 // Call the runtime system in a fresh internal frame.
112 FrameScope scope(masm, StackFrame::INTERNAL); 112 FrameScope scope(masm, StackFrame::INTERNAL);
113 DCHECK(param_count == 0 || 113 DCHECK(param_count == 0 ||
114 eax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); 114 eax.is(descriptor.GetRegisterParameter(param_count - 1)));
115 // Push arguments 115 // Push arguments
116 for (int i = 0; i < param_count; ++i) { 116 for (int i = 0; i < param_count; ++i) {
117 __ push(descriptor.GetEnvironmentParameterRegister(i)); 117 __ push(descriptor.GetRegisterParameter(i));
118 } 118 }
119 __ CallExternalReference(miss, param_count); 119 __ CallExternalReference(miss, param_count);
120 } 120 }
121 121
122 __ ret(0); 122 __ ret(0);
123 } 123 }
124 124
125 125
126 void StoreBufferOverflowStub::Generate(MacroAssembler* masm) { 126 void StoreBufferOverflowStub::Generate(MacroAssembler* masm) {
127 // We don't allow a GC during a store buffer overflow so there is no need to 127 // We don't allow a GC during a store buffer overflow so there is no need to
(...skipping 5008 matching lines...) Expand 10 before | Expand all | Expand 10 after
5136 Operand(ebp, 7 * kPointerSize), NULL); 5136 Operand(ebp, 7 * kPointerSize), NULL);
5137 } 5137 }
5138 5138
5139 5139
5140 #undef __ 5140 #undef __
5141 5141
5142 } // namespace internal 5142 } // namespace internal
5143 } // namespace v8 5143 } // namespace v8
5144 5144
5145 #endif // V8_TARGET_ARCH_X87 5145 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698