| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 | 75 |
| 76 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( | 76 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( |
| 77 CodeStubInterfaceDescriptor* descriptor) { | 77 CodeStubInterfaceDescriptor* descriptor) { |
| 78 Register registers[] = { rsi, rbx, rdx }; | 78 Register registers[] = { rsi, rbx, rdx }; |
| 79 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | 79 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
| 80 } | 80 } |
| 81 | 81 |
| 82 | 82 |
| 83 void InstanceofStub::InitializeInterfaceDescriptor( | |
| 84 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { | |
| 85 Register registers[] = {rsi, left(), right()}; | |
| 86 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | |
| 87 } | |
| 88 | |
| 89 | |
| 90 void CallFunctionStub::InitializeInterfaceDescriptor( | 83 void CallFunctionStub::InitializeInterfaceDescriptor( |
| 91 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { | 84 CodeStubInterfaceDescriptor* descriptor) { |
| 92 Register registers[] = {rsi, rdi}; | 85 Register registers[] = {rsi, rdi}; |
| 93 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | 86 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
| 94 } | 87 } |
| 95 | 88 |
| 96 | 89 |
| 97 void CallConstructStub::InitializeInterfaceDescriptor( | 90 void CallConstructStub::InitializeInterfaceDescriptor( |
| 98 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { | 91 CodeStubInterfaceDescriptor* descriptor) { |
| 99 // rax : number of arguments | 92 // rax : number of arguments |
| 100 // rbx : feedback vector | 93 // rbx : feedback vector |
| 101 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback | 94 // rdx : (only if rbx is not the megamorphic symbol) slot in feedback |
| 102 // vector (Smi) | 95 // vector (Smi) |
| 103 // rdi : constructor function | 96 // rdi : constructor function |
| 104 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 97 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
| 105 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 98 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
| 106 Register registers[] = {rsi, rax, rdi, rbx}; | 99 Register registers[] = {rsi, rax, rdi, rbx}; |
| 107 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | 100 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
| 108 } | 101 } |
| (...skipping 4871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4980 return_value_operand, | 4973 return_value_operand, |
| 4981 NULL); | 4974 NULL); |
| 4982 } | 4975 } |
| 4983 | 4976 |
| 4984 | 4977 |
| 4985 #undef __ | 4978 #undef __ |
| 4986 | 4979 |
| 4987 } } // namespace v8::internal | 4980 } } // namespace v8::internal |
| 4988 | 4981 |
| 4989 #endif // V8_TARGET_ARCH_X64 | 4982 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |