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 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 CheckPrototypes( | 2255 CheckPrototypes( |
2256 Handle<JSObject>(JSObject::cast(object->GetPrototype())), | 2256 Handle<JSObject>(JSObject::cast(object->GetPrototype())), |
2257 rax, holder, rbx, rdx, rdi, name, &miss); | 2257 rax, holder, rbx, rdx, rdi, name, &miss); |
2258 } else { | 2258 } else { |
2259 // Calling non-strict non-builtins with a value as the receiver | 2259 // Calling non-strict non-builtins with a value as the receiver |
2260 // requires boxing. | 2260 // requires boxing. |
2261 __ jmp(&miss); | 2261 __ jmp(&miss); |
2262 } | 2262 } |
2263 break; | 2263 break; |
2264 | 2264 |
| 2265 case SYMBOL_CHECK: |
| 2266 // Check that the object is a symbol. |
| 2267 __ CmpObjectType(rdx, SYMBOL_TYPE, rax); |
| 2268 __ j(not_equal, &miss); |
| 2269 break; |
| 2270 |
2265 case NUMBER_CHECK: | 2271 case NUMBER_CHECK: |
2266 if (function->IsBuiltin() || !function->shared()->is_classic_mode()) { | 2272 if (function->IsBuiltin() || !function->shared()->is_classic_mode()) { |
2267 Label fast; | 2273 Label fast; |
2268 // Check that the object is a smi or a heap number. | 2274 // Check that the object is a smi or a heap number. |
2269 __ JumpIfSmi(rdx, &fast); | 2275 __ JumpIfSmi(rdx, &fast); |
2270 __ CmpObjectType(rdx, HEAP_NUMBER_TYPE, rax); | 2276 __ CmpObjectType(rdx, HEAP_NUMBER_TYPE, rax); |
2271 __ j(not_equal, &miss); | 2277 __ j(not_equal, &miss); |
2272 __ bind(&fast); | 2278 __ bind(&fast); |
2273 // Check that the maps starting from the prototype haven't changed. | 2279 // Check that the maps starting from the prototype haven't changed. |
2274 GenerateDirectLoadGlobalFunctionPrototype( | 2280 GenerateDirectLoadGlobalFunctionPrototype( |
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3692 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 3698 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
3693 } | 3699 } |
3694 } | 3700 } |
3695 | 3701 |
3696 | 3702 |
3697 #undef __ | 3703 #undef __ |
3698 | 3704 |
3699 } } // namespace v8::internal | 3705 } } // namespace v8::internal |
3700 | 3706 |
3701 #endif // V8_TARGET_ARCH_X64 | 3707 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |