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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 | 101 |
102 | 102 |
103 #define __ ACCESS_MASM(masm) | 103 #define __ ACCESS_MASM(masm) |
104 | 104 |
105 | 105 |
106 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 106 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
107 // Update the static counter each time a new code stub is generated. | 107 // Update the static counter each time a new code stub is generated. |
108 isolate()->counters()->code_stubs()->Increment(); | 108 isolate()->counters()->code_stubs()->Increment(); |
109 | 109 |
110 CodeStubInterfaceDescriptor descriptor; | 110 CodeStubInterfaceDescriptor descriptor(this); |
111 InitializeInterfaceDescriptor(&descriptor); | |
112 int param_count = descriptor.GetEnvironmentParameterCount(); | 111 int param_count = descriptor.GetEnvironmentParameterCount(); |
113 { | 112 { |
114 // Call the runtime system in a fresh internal frame. | 113 // Call the runtime system in a fresh internal frame. |
115 FrameScope scope(masm, StackFrame::INTERNAL); | 114 FrameScope scope(masm, StackFrame::INTERNAL); |
116 DCHECK(param_count == 0 || | 115 DCHECK(param_count == 0 || |
117 rax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); | 116 rax.is(descriptor.GetEnvironmentParameterRegister(param_count - 1))); |
118 // Push arguments | 117 // Push arguments |
119 for (int i = 0; i < param_count; ++i) { | 118 for (int i = 0; i < param_count; ++i) { |
120 __ Push(descriptor.GetEnvironmentParameterRegister(i)); | 119 __ Push(descriptor.GetEnvironmentParameterRegister(i)); |
121 } | 120 } |
(...skipping 4526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4648 return_value_operand, | 4647 return_value_operand, |
4649 NULL); | 4648 NULL); |
4650 } | 4649 } |
4651 | 4650 |
4652 | 4651 |
4653 #undef __ | 4652 #undef __ |
4654 | 4653 |
4655 } } // namespace v8::internal | 4654 } } // namespace v8::internal |
4656 | 4655 |
4657 #endif // V8_TARGET_ARCH_X64 | 4656 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |