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 2742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2753 __ bind(&fast); | 2753 __ bind(&fast); |
2754 // Check that the maps starting from the prototype haven't changed. | 2754 // Check that the maps starting from the prototype haven't changed. |
2755 GenerateDirectLoadGlobalFunctionPrototype( | 2755 GenerateDirectLoadGlobalFunctionPrototype( |
2756 masm(), Context::NUMBER_FUNCTION_INDEX, eax, &miss); | 2756 masm(), Context::NUMBER_FUNCTION_INDEX, eax, &miss); |
2757 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); | 2757 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
2758 CheckPrototypes( | 2758 CheckPrototypes( |
2759 IC::CurrentTypeOf(prototype, isolate()), | 2759 IC::CurrentTypeOf(prototype, isolate()), |
2760 eax, holder, ebx, edx, edi, name, &miss); | 2760 eax, holder, ebx, edx, edi, name, &miss); |
2761 break; | 2761 break; |
2762 } | 2762 } |
| 2763 |
| 2764 case FLOAT32x4_CHECK: { |
| 2765 Label fast; |
| 2766 // Check that the object is a float32x4. |
| 2767 __ CmpObjectType(edx, FLOAT32x4_TYPE, eax); |
| 2768 __ j(not_equal, &miss); |
| 2769 // Check that the maps starting from the prototype haven't changed. |
| 2770 GenerateDirectLoadGlobalFunctionPrototype( |
| 2771 masm(), Context::FLOAT32x4_FUNCTION_INDEX, eax, &miss); |
| 2772 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
| 2773 CheckPrototypes( |
| 2774 IC::CurrentTypeOf(prototype, isolate()), |
| 2775 eax, holder, ebx, edx, edi, name, &miss); |
| 2776 break; |
| 2777 } |
| 2778 |
| 2779 case INT32x4_CHECK: { |
| 2780 Label fast; |
| 2781 // Check that the object is a int32x4. |
| 2782 __ CmpObjectType(edx, INT32x4_TYPE, eax); |
| 2783 __ j(not_equal, &miss); |
| 2784 // Check that the maps starting from the prototype haven't changed. |
| 2785 GenerateDirectLoadGlobalFunctionPrototype( |
| 2786 masm(), Context::INT32x4_FUNCTION_INDEX, eax, &miss); |
| 2787 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
| 2788 CheckPrototypes( |
| 2789 IC::CurrentTypeOf(prototype, isolate()), |
| 2790 eax, holder, ebx, edx, edi, name, &miss); |
| 2791 break; |
| 2792 } |
| 2793 |
2763 case BOOLEAN_CHECK: { | 2794 case BOOLEAN_CHECK: { |
2764 GenerateBooleanCheck(edx, &miss); | 2795 GenerateBooleanCheck(edx, &miss); |
2765 // Check that the maps starting from the prototype haven't changed. | 2796 // Check that the maps starting from the prototype haven't changed. |
2766 GenerateDirectLoadGlobalFunctionPrototype( | 2797 GenerateDirectLoadGlobalFunctionPrototype( |
2767 masm(), Context::BOOLEAN_FUNCTION_INDEX, eax, &miss); | 2798 masm(), Context::BOOLEAN_FUNCTION_INDEX, eax, &miss); |
2768 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); | 2799 Handle<Object> prototype(object->GetPrototype(isolate()), isolate()); |
2769 CheckPrototypes( | 2800 CheckPrototypes( |
2770 IC::CurrentTypeOf(prototype, isolate()), | 2801 IC::CurrentTypeOf(prototype, isolate()), |
2771 eax, holder, ebx, edx, edi, name, &miss); | 2802 eax, holder, ebx, edx, edi, name, &miss); |
2772 break; | 2803 break; |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3300 // ----------------------------------- | 3331 // ----------------------------------- |
3301 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 3332 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
3302 } | 3333 } |
3303 | 3334 |
3304 | 3335 |
3305 #undef __ | 3336 #undef __ |
3306 | 3337 |
3307 } } // namespace v8::internal | 3338 } } // namespace v8::internal |
3308 | 3339 |
3309 #endif // V8_TARGET_ARCH_IA32 | 3340 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |