OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 Handle<JSFunction> function, | 2238 Handle<JSFunction> function, |
2239 Handle<String> name, | 2239 Handle<String> name, |
2240 Code::StubType type) { | 2240 Code::StubType type) { |
2241 // ----------- S t a t e ------------- | 2241 // ----------- S t a t e ------------- |
2242 // -- rcx : name | 2242 // -- rcx : name |
2243 // -- rsp[0] : return address | 2243 // -- rsp[0] : return address |
2244 // -- rsp[(argc - n) * 4] : arg[n] (zero-based) | 2244 // -- rsp[(argc - n) * 4] : arg[n] (zero-based) |
2245 // -- ... | 2245 // -- ... |
2246 // -- rsp[(argc + 1) * 4] : receiver | 2246 // -- rsp[(argc + 1) * 4] : receiver |
2247 // ----------------------------------- | 2247 // ----------------------------------- |
2248 | |
2249 if (!CpuFeatures::IsSupported(SSE2)) { | |
2250 return Handle<Code>::null(); | |
2251 } | |
2252 | |
2253 CpuFeatureScope use_sse2(masm(), SSE2); | |
2254 | |
2255 const int argc = arguments().immediate(); | 2248 const int argc = arguments().immediate(); |
2256 | 2249 |
2257 // If the object is not a JSObject or we got an unexpected number of | 2250 // If the object is not a JSObject or we got an unexpected number of |
2258 // arguments, bail out to the regular call. | 2251 // arguments, bail out to the regular call. |
2259 if (!object->IsJSObject() || argc != 1) { | 2252 if (!object->IsJSObject() || argc != 1) { |
2260 return Handle<Code>::null(); | 2253 return Handle<Code>::null(); |
2261 } | 2254 } |
2262 | 2255 |
2263 Label miss; | 2256 Label miss; |
2264 GenerateNameCheck(name, &miss); | 2257 GenerateNameCheck(name, &miss); |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3169 // ----------------------------------- | 3162 // ----------------------------------- |
3170 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3163 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
3171 } | 3164 } |
3172 | 3165 |
3173 | 3166 |
3174 #undef __ | 3167 #undef __ |
3175 | 3168 |
3176 } } // namespace v8::internal | 3169 } } // namespace v8::internal |
3177 | 3170 |
3178 #endif // V8_TARGET_ARCH_X64 | 3171 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |