OLD | NEW |
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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 Loading... |
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 5348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5476 Operand(ebp, 7 * kPointerSize), NULL); | 5476 Operand(ebp, 7 * kPointerSize), NULL); |
5477 } | 5477 } |
5478 | 5478 |
5479 | 5479 |
5480 #undef __ | 5480 #undef __ |
5481 | 5481 |
5482 } // namespace internal | 5482 } // namespace internal |
5483 } // namespace v8 | 5483 } // namespace v8 |
5484 | 5484 |
5485 #endif // V8_TARGET_ARCH_IA32 | 5485 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |