| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( | 86 void CreateAllocationSiteStub::InitializeInterfaceDescriptor( |
| 87 CodeStubInterfaceDescriptor* descriptor) { | 87 CodeStubInterfaceDescriptor* descriptor) { |
| 88 static Register registers[] = { ebx, edx }; | 88 static Register registers[] = { ebx, edx }; |
| 89 descriptor->register_param_count_ = 2; | 89 descriptor->register_param_count_ = 2; |
| 90 descriptor->register_params_ = registers; | 90 descriptor->register_params_ = registers; |
| 91 descriptor->deoptimization_handler_ = NULL; | 91 descriptor->deoptimization_handler_ = NULL; |
| 92 } | 92 } |
| 93 | 93 |
| 94 | 94 |
| 95 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( | |
| 96 CodeStubInterfaceDescriptor* descriptor) { | |
| 97 static Register registers[] = { edx, ecx }; | |
| 98 descriptor->register_param_count_ = 2; | |
| 99 descriptor->register_params_ = registers; | |
| 100 descriptor->deoptimization_handler_ = | |
| 101 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | |
| 102 } | |
| 103 | |
| 104 | |
| 105 void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor( | |
| 106 CodeStubInterfaceDescriptor* descriptor) { | |
| 107 static Register registers[] = { edx, ecx }; | |
| 108 descriptor->register_param_count_ = 2; | |
| 109 descriptor->register_params_ = registers; | |
| 110 descriptor->deoptimization_handler_ = | |
| 111 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | |
| 112 } | |
| 113 | |
| 114 | |
| 115 void RegExpConstructResultStub::InitializeInterfaceDescriptor( | 95 void RegExpConstructResultStub::InitializeInterfaceDescriptor( |
| 116 CodeStubInterfaceDescriptor* descriptor) { | 96 CodeStubInterfaceDescriptor* descriptor) { |
| 117 static Register registers[] = { ecx, ebx, eax }; | 97 static Register registers[] = { ecx, ebx, eax }; |
| 118 descriptor->register_param_count_ = 3; | 98 descriptor->register_param_count_ = 3; |
| 119 descriptor->register_params_ = registers; | 99 descriptor->register_params_ = registers; |
| 120 descriptor->deoptimization_handler_ = | 100 descriptor->deoptimization_handler_ = |
| 121 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; | 101 Runtime::FunctionForId(Runtime::kHiddenRegExpConstructResult)->entry; |
| 122 } | 102 } |
| 123 | 103 |
| 124 | 104 |
| 125 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor( | |
| 126 CodeStubInterfaceDescriptor* descriptor) { | |
| 127 static Register registers[] = { edx, ecx }; | |
| 128 descriptor->register_param_count_ = 2; | |
| 129 descriptor->register_params_ = registers; | |
| 130 descriptor->deoptimization_handler_ = | |
| 131 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry; | |
| 132 } | |
| 133 | |
| 134 | |
| 135 void LoadFieldStub::InitializeInterfaceDescriptor( | 105 void LoadFieldStub::InitializeInterfaceDescriptor( |
| 136 CodeStubInterfaceDescriptor* descriptor) { | 106 CodeStubInterfaceDescriptor* descriptor) { |
| 137 static Register registers[] = { edx }; | 107 static Register registers[] = { edx }; |
| 138 descriptor->register_param_count_ = 1; | 108 descriptor->register_param_count_ = 1; |
| 139 descriptor->register_params_ = registers; | 109 descriptor->register_params_ = registers; |
| 140 descriptor->deoptimization_handler_ = NULL; | 110 descriptor->deoptimization_handler_ = NULL; |
| 141 } | 111 } |
| 142 | 112 |
| 143 | 113 |
| 144 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( | 114 void KeyedLoadFieldStub::InitializeInterfaceDescriptor( |
| (...skipping 4579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4724 Operand(ebp, 7 * kPointerSize), | 4694 Operand(ebp, 7 * kPointerSize), |
| 4725 NULL); | 4695 NULL); |
| 4726 } | 4696 } |
| 4727 | 4697 |
| 4728 | 4698 |
| 4729 #undef __ | 4699 #undef __ |
| 4730 | 4700 |
| 4731 } } // namespace v8::internal | 4701 } } // namespace v8::internal |
| 4732 | 4702 |
| 4733 #endif // V8_TARGET_ARCH_X87 | 4703 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |