OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Isolate* isolate, | 118 Isolate* isolate, |
119 CodeStubInterfaceDescriptor* descriptor) { | 119 CodeStubInterfaceDescriptor* descriptor) { |
120 static Register registers[] = { rdx, rax }; | 120 static Register registers[] = { rdx, rax }; |
121 descriptor->register_param_count_ = 2; | 121 descriptor->register_param_count_ = 2; |
122 descriptor->register_params_ = registers; | 122 descriptor->register_params_ = registers; |
123 descriptor->deoptimization_handler_ = | 123 descriptor->deoptimization_handler_ = |
124 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | 124 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
125 } | 125 } |
126 | 126 |
127 | 127 |
| 128 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor( |
| 129 Isolate* isolate, |
| 130 CodeStubInterfaceDescriptor* descriptor) { |
| 131 static Register registers[] = { rdx, rax }; |
| 132 descriptor->register_param_count_ = 2; |
| 133 descriptor->register_params_ = registers; |
| 134 descriptor->deoptimization_handler_ = |
| 135 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry; |
| 136 } |
| 137 |
| 138 |
128 void LoadFieldStub::InitializeInterfaceDescriptor( | 139 void LoadFieldStub::InitializeInterfaceDescriptor( |
129 Isolate* isolate, | 140 Isolate* isolate, |
130 CodeStubInterfaceDescriptor* descriptor) { | 141 CodeStubInterfaceDescriptor* descriptor) { |
131 static Register registers[] = { rax }; | 142 static Register registers[] = { rax }; |
132 descriptor->register_param_count_ = 1; | 143 descriptor->register_param_count_ = 1; |
133 descriptor->register_params_ = registers; | 144 descriptor->register_params_ = registers; |
134 descriptor->deoptimization_handler_ = NULL; | 145 descriptor->deoptimization_handler_ = NULL; |
135 } | 146 } |
136 | 147 |
137 | 148 |
(...skipping 5738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5876 __ bind(&fast_elements_case); | 5887 __ bind(&fast_elements_case); |
5877 GenerateCase(masm, FAST_ELEMENTS); | 5888 GenerateCase(masm, FAST_ELEMENTS); |
5878 } | 5889 } |
5879 | 5890 |
5880 | 5891 |
5881 #undef __ | 5892 #undef __ |
5882 | 5893 |
5883 } } // namespace v8::internal | 5894 } } // namespace v8::internal |
5884 | 5895 |
5885 #endif // V8_TARGET_ARCH_X64 | 5896 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |