| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( | 87 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( |
| 88 CodeStubInterfaceDescriptor* descriptor) { | 88 CodeStubInterfaceDescriptor* descriptor) { |
| 89 static Register registers[] = { ebx, edx }; | 89 static Register registers[] = { ebx, edx }; |
| 90 descriptor->register_param_count_ = 2; | 90 descriptor->register_param_count_ = 2; |
| 91 descriptor->register_params_ = registers; | 91 descriptor->register_params_ = registers; |
| 92 descriptor->deoptimization_handler_ = NULL; | 92 descriptor->deoptimization_handler_ = NULL; |
| 93 } | 93 } |
| 94 | 94 |
| 95 | 95 |
| 96 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( | |
| 97 CodeStubInterfaceDescriptor* descriptor) { | |
| 98 static Register registers[] = { edx, ecx }; | |
| 99 descriptor->register_param_count_ = 2; | |
| 100 descriptor->register_params_ = registers; | |
| 101 descriptor->deoptimization_handler_ = | |
| 102 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | |
| 103 } | |
| 104 | |
| 105 | |
| 106 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor( | |
| 107 CodeStubInterfaceDescriptor* descriptor) { | |
| 108 static Register registers[] = { edx, ecx }; | |
| 109 descriptor->register_param_count_ = 2; | |
| 110 descriptor->register_params_ = registers; | |
| 111 descriptor->deoptimization_handler_ = | |
| 112 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | |
| 113 } | |
| 114 | |
| 115 | |
| 116 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 96 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
| 117 CodeStubInterfaceDescriptor* descriptor) { | 97 CodeStubInterfaceDescriptor* descriptor) { |
| 118 static Register registers[] = { ecx, ebx, eax }; | 98 static Register registers[] = { ecx, ebx, eax }; |
| 119 descriptor->register_param_count_ = 3; | 99 descriptor->register_param_count_ = 3; |
| 120 descriptor->register_params_ = registers; | 100 descriptor->register_params_ = registers; |
| 121 descriptor->deoptimization_handler_ = | 101 descriptor->deoptimization_handler_ = |
| 122 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; | 102 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; |
| 123 } | 103 } |
| 124 | 104 |
| 125 | 105 |
| 126 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor( | |
| 127 CodeStubInterfaceDescriptor* descriptor) { | |
| 128 static Register registers[] = { edx, ecx }; | |
| 129 descriptor->register_param_count_ = 2; | |
| 130 descriptor->register_params_ = registers; | |
| 131 descriptor->deoptimization_handler_ = | |
| 132 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry; | |
| 133 } | |
| 134 | |
| 135 | |
| 136 void LoadFieldStub::InitializeInterfaceDescriptor( | 106 void LoadFieldStub::InitializeInterfaceDescriptor( |
| 137 CodeStubInterfaceDescriptor* descriptor) { | 107 CodeStubInterfaceDescriptor* descriptor) { |
| 138 static Register registers[] = { edx }; | 108 static Register registers[] = { edx }; |
| 139 descriptor->register_param_count_ = 1; | 109 descriptor->register_param_count_ = 1; |
| 140 descriptor->register_params_ = registers; | 110 descriptor->register_params_ = registers; |
| 141 descriptor->deoptimization_handler_ = NULL; | 111 descriptor->deoptimization_handler_ = NULL; |
| 142 } | 112 } |
| 143 | 113 |
| 144 | 114 |
| 145 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | 115 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( |
| (...skipping 4939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5085 Operand(ebp, 7 * kPointerSize), | 5055 Operand(ebp, 7 * kPointerSize), |
| 5086 NULL); | 5056 NULL); |
| 5087 } | 5057 } |
| 5088 | 5058 |
| 5089 | 5059 |
| 5090 #undef __ | 5060 #undef __ |
| 5091 | 5061 |
| 5092 } } // namespace v8::internal | 5062 } } // namespace v8::internal |
| 5093 | 5063 |
| 5094 #endif // V8_TARGET_ARCH_IA32 | 5064 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |