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_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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 | 110 |
111 #define __ ACCESS_MASM(masm) | 111 #define __ ACCESS_MASM(masm) |
112 | 112 |
113 | 113 |
114 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 114 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
115 // Update the static counter each time a new code stub is generated. | 115 // Update the static counter each time a new code stub is generated. |
116 isolate()->counters()->code_stubs()->Increment(); | 116 isolate()->counters()->code_stubs()->Increment(); |
117 | 117 |
118 CodeStubInterfaceDescriptor descriptor; | 118 CodeStubInterfaceDescriptor descriptor(this); |
119 InitializeInterfaceDescriptor(&descriptor); | |
120 int param_count = descriptor.GetEnvironmentParameterCount(); | 119 int param_count = descriptor.GetEnvironmentParameterCount(); |
121 { | 120 { |
122 // Call the runtime system in a fresh internal frame. | 121 // Call the runtime system in a fresh internal frame. |
123 FrameScope scope(masm, StackFrame::INTERNAL); | 122 FrameScope scope(masm, StackFrame::INTERNAL); |
124 DCHECK(param_count == 0 || | 123 DCHECK(param_count == 0 || |
125 eax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 124 eax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); |
126 // Push arguments | 125 // Push arguments |
127 for (int i = 0; i < param_count; ++i) { | 126 for (int i = 0; i < param_count; ++i) { |
128 __ push(descriptor.GetEnvironmentParameterRegister(i)); | 127 __ push(descriptor.GetEnvironmentParameterRegister(i)); |
129 } | 128 } |
(...skipping 4193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4323 Operand(ebp, 7 * kPointerSize), | 4322 Operand(ebp, 7 * kPointerSize), |
4324 NULL); | 4323 NULL); |
4325 } | 4324 } |
4326 | 4325 |
4327 | 4326 |
4328 #undef __ | 4327 #undef __ |
4329 | 4328 |
4330 } } // namespace v8::internal | 4329 } } // namespace v8::internal |
4331 | 4330 |
4332 #endif // V8_TARGET_ARCH_X87 | 4331 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |