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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 | 79 |
80 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( | 80 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( |
81 CodeStubInterfaceDescriptor* descriptor) { | 81 CodeStubInterfaceDescriptor* descriptor) { |
82 Register registers[] = { esi, ebx, edx }; | 82 Register registers[] = { esi, ebx, edx }; |
83 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | 83 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 void InstanceofStub::InitializeInterfaceDescriptor( | |
88 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { | |
89 Register registers[] = {esi, left(), right()}; | |
90 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | |
91 } | |
92 | |
93 | |
94 void CallFunctionStub::InitializeInterfaceDescriptor( | 87 void CallFunctionStub::InitializeInterfaceDescriptor( |
95 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { | 88 CodeStubInterfaceDescriptor* descriptor) { |
96 Register registers[] = {esi, edi}; | 89 Register registers[] = {esi, edi}; |
97 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | 90 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
98 } | 91 } |
99 | 92 |
100 | 93 |
101 void CallConstructStub::InitializeInterfaceDescriptor( | 94 void CallConstructStub::InitializeInterfaceDescriptor( |
102 Isolate* isolate, CodeStubInterfaceDescriptor* descriptor) { | 95 CodeStubInterfaceDescriptor* descriptor) { |
103 // eax : number of arguments | 96 // eax : number of arguments |
104 // ebx : feedback vector | 97 // ebx : feedback vector |
105 // edx : (only if ebx is not the megamorphic symbol) slot in feedback | 98 // edx : (only if ebx is not the megamorphic symbol) slot in feedback |
106 // vector (Smi) | 99 // vector (Smi) |
107 // edi : constructor function | 100 // edi : constructor function |
108 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 101 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
109 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 102 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
110 Register registers[] = {esi, eax, edi, ebx}; | 103 Register registers[] = {esi, eax, edi, ebx}; |
111 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); | 104 descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
112 } | 105 } |
(...skipping 4899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5012 Operand(ebp, 7 * kPointerSize), | 5005 Operand(ebp, 7 * kPointerSize), |
5013 NULL); | 5006 NULL); |
5014 } | 5007 } |
5015 | 5008 |
5016 | 5009 |
5017 #undef __ | 5010 #undef __ |
5018 | 5011 |
5019 } } // namespace v8::internal | 5012 } } // namespace v8::internal |
5020 | 5013 |
5021 #endif // V8_TARGET_ARCH_IA32 | 5014 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |