| OLD | NEW |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 | 106 |
| 107 #define __ ACCESS_MASM(masm) | 107 #define __ ACCESS_MASM(masm) |
| 108 | 108 |
| 109 | 109 |
| 110 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 110 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 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 CodeStubInterfaceDescriptor descriptor; | 114 CodeStubInterfaceDescriptor descriptor(this); |
| 115 InitializeInterfaceDescriptor(&descriptor); | |
| 116 int param_count = descriptor.GetEnvironmentParameterCount(); | 115 int param_count = descriptor.GetEnvironmentParameterCount(); |
| 117 { | 116 { |
| 118 // Call the runtime system in a fresh internal frame. | 117 // Call the runtime system in a fresh internal frame. |
| 119 FrameScope scope(masm, StackFrame::INTERNAL); | 118 FrameScope scope(masm, StackFrame::INTERNAL); |
| 120 DCHECK((param_count == 0) || | 119 DCHECK((param_count == 0) || |
| 121 x0.Is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 120 x0.Is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); |
| 122 | 121 |
| 123 // Push arguments | 122 // Push arguments |
| 124 MacroAssembler::PushPopQueue queue(masm); | 123 MacroAssembler::PushPopQueue queue(masm); |
| 125 for (int i = 0; i < param_count; ++i) { | 124 for (int i = 0; i < param_count; ++i) { |
| (...skipping 4929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5055 MemOperand(fp, 6 * kPointerSize), | 5054 MemOperand(fp, 6 * kPointerSize), |
| 5056 NULL); | 5055 NULL); |
| 5057 } | 5056 } |
| 5058 | 5057 |
| 5059 | 5058 |
| 5060 #undef __ | 5059 #undef __ |
| 5061 | 5060 |
| 5062 } } // namespace v8::internal | 5061 } } // namespace v8::internal |
| 5063 | 5062 |
| 5064 #endif // V8_TARGET_ARCH_ARM64 | 5063 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |