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