| 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 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2658 __ bind(&fast); | 2658 __ bind(&fast); |
| 2659 // Check that the maps starting from the prototype haven't changed. | 2659 // Check that the maps starting from the prototype haven't changed. |
| 2660 GenerateDirectLoadGlobalFunctionPrototype( | 2660 GenerateDirectLoadGlobalFunctionPrototype( |
| 2661 masm(), Context::NUMBER_FUNCTION_INDEX, rax, &miss); | 2661 masm(), Context::NUMBER_FUNCTION_INDEX, rax, &miss); |
| 2662 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); | 2662 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
| 2663 CheckPrototypes( | 2663 CheckPrototypes( |
| 2664 IC::CurrentTypeOf(prototype, isolate()), | 2664 IC::CurrentTypeOf(prototype, isolate()), |
| 2665 rax, holder, rbx, rdx, rdi, name, &miss); | 2665 rax, holder, rbx, rdx, rdi, name, &miss); |
| 2666 break; | 2666 break; |
| 2667 } | 2667 } |
| 2668 |
| 2669 case FLOAT32x4_CHECK: { |
| 2670 // Check that the object is a float32x4. |
| 2671 __ CmpObjectType(rdx, FLOAT32x4_TYPE, rax); |
| 2672 __ j(not_equal, &miss); |
| 2673 // Check that the maps starting from the prototype haven't changed. |
| 2674 GenerateDirectLoadGlobalFunctionPrototype( |
| 2675 masm(), Context::FLOAT32x4_FUNCTION_INDEX, rax, &miss); |
| 2676 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
| 2677 CheckPrototypes( |
| 2678 IC::CurrentTypeOf(prototype, isolate()), |
| 2679 rax, holder, rbx, rdx, rdi, name, &miss); |
| 2680 break; |
| 2681 } |
| 2682 |
| 2683 case INT32x4_CHECK: { |
| 2684 // Check that the object is a int32x4. |
| 2685 __ CmpObjectType(rdx, INT32x4_TYPE, rax); |
| 2686 __ j(not_equal, &miss); |
| 2687 // Check that the maps starting from the prototype haven't changed. |
| 2688 GenerateDirectLoadGlobalFunctionPrototype( |
| 2689 masm(), Context::INT32x4_FUNCTION_INDEX, rax, &miss); |
| 2690 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
| 2691 CheckPrototypes( |
| 2692 IC::CurrentTypeOf(prototype, isolate()), |
| 2693 rax, holder, rbx, rdx, rdi, name, &miss); |
| 2694 break; |
| 2695 } |
| 2696 |
| 2668 case BOOLEAN_CHECK: { | 2697 case BOOLEAN_CHECK: { |
| 2669 GenerateBooleanCheck(rdx, &miss); | 2698 GenerateBooleanCheck(rdx, &miss); |
| 2670 // Check that the maps starting from the prototype haven't changed. | 2699 // Check that the maps starting from the prototype haven't changed. |
| 2671 GenerateDirectLoadGlobalFunctionPrototype( | 2700 GenerateDirectLoadGlobalFunctionPrototype( |
| 2672 masm(), Context::BOOLEAN_FUNCTION_INDEX, rax, &miss); | 2701 masm(), Context::BOOLEAN_FUNCTION_INDEX, rax, &miss); |
| 2673 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); | 2702 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
| 2674 CheckPrototypes( | 2703 CheckPrototypes( |
| 2675 IC::CurrentTypeOf(prototype, isolate()), | 2704 IC::CurrentTypeOf(prototype, isolate()), |
| 2676 rax, holder, rbx, rdx, rdi, name, &miss); | 2705 rax, holder, rbx, rdx, rdi, name, &miss); |
| 2677 break; | 2706 break; |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3215 // ----------------------------------- | 3244 // ----------------------------------- |
| 3216 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 3245 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 3217 } | 3246 } |
| 3218 | 3247 |
| 3219 | 3248 |
| 3220 #undef __ | 3249 #undef __ |
| 3221 | 3250 |
| 3222 } } // namespace v8::internal | 3251 } } // namespace v8::internal |
| 3223 | 3252 |
| 3224 #endif // V8_TARGET_ARCH_X64 | 3253 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |