| 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 Register lhs, | 105 Register lhs, |
| 106 Register rhs); | 106 Register rhs); |
| 107 | 107 |
| 108 | 108 |
| 109 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, | 109 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm, |
| 110 ExternalReference miss) { | 110 ExternalReference miss) { |
| 111 // Update the static counter each time a new code stub is generated. | 111 // Update the static counter each time a new code stub is generated. |
| 112 isolate()->counters()->code_stubs()->Increment(); | 112 isolate()->counters()->code_stubs()->Increment(); |
| 113 | 113 |
| 114 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); | 114 CallInterfaceDescriptor descriptor = GetCallInterfaceDescriptor(); |
| 115 int param_count = descriptor.GetEnvironmentParameterCount(); | 115 int param_count = descriptor.GetRegisterParameterCount(); |
| 116 { | 116 { |
| 117 // Call the runtime system in a fresh internal frame. | 117 // Call the runtime system in a fresh internal frame. |
| 118 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); | 118 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
| 119 DCHECK(param_count == 0 || | 119 DCHECK(param_count == 0 || |
| 120 r0.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 120 r0.is(descriptor.GetRegisterParameter(param_count - 1))); |
| 121 // Push arguments | 121 // Push arguments |
| 122 for (int i = 0; i < param_count; ++i) { | 122 for (int i = 0; i < param_count; ++i) { |
| 123 __ push(descriptor.GetEnvironmentParameterRegister(i)); | 123 __ push(descriptor.GetRegisterParameter(i)); |
| 124 } | 124 } |
| 125 __ CallExternalReference(miss, param_count); | 125 __ CallExternalReference(miss, param_count); |
| 126 } | 126 } |
| 127 | 127 |
| 128 __ Ret(); | 128 __ Ret(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 | 131 |
| 132 void DoubleToIStub::Generate(MacroAssembler* masm) { | 132 void DoubleToIStub::Generate(MacroAssembler* masm) { |
| 133 Label out_of_range, only_low, negate, done; | 133 Label out_of_range, only_low, negate, done; |
| (...skipping 5232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5366 MemOperand(fp, 6 * kPointerSize), NULL); | 5366 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5367 } | 5367 } |
| 5368 | 5368 |
| 5369 | 5369 |
| 5370 #undef __ | 5370 #undef __ |
| 5371 | 5371 |
| 5372 } // namespace internal | 5372 } // namespace internal |
| 5373 } // namespace v8 | 5373 } // namespace v8 |
| 5374 | 5374 |
| 5375 #endif // V8_TARGET_ARCH_ARM | 5375 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |