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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 550 |
551 | 551 |
552 void KeyedStoreElementStub::Generate(MacroAssembler* masm) { | 552 void KeyedStoreElementStub::Generate(MacroAssembler* masm) { |
553 switch (elements_kind_) { | 553 switch (elements_kind_) { |
554 case FAST_ELEMENTS: | 554 case FAST_ELEMENTS: |
555 case FAST_HOLEY_ELEMENTS: | 555 case FAST_HOLEY_ELEMENTS: |
556 case FAST_SMI_ELEMENTS: | 556 case FAST_SMI_ELEMENTS: |
557 case FAST_HOLEY_SMI_ELEMENTS: | 557 case FAST_HOLEY_SMI_ELEMENTS: |
558 case FAST_DOUBLE_ELEMENTS: | 558 case FAST_DOUBLE_ELEMENTS: |
559 case FAST_HOLEY_DOUBLE_ELEMENTS: | 559 case FAST_HOLEY_DOUBLE_ELEMENTS: |
560 case EXTERNAL_BYTE_ELEMENTS: | 560 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
561 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: | 561 case EXTERNAL_##TYPE##_ELEMENTS: \ |
562 case EXTERNAL_SHORT_ELEMENTS: | 562 case TYPE##_ELEMENTS: |
563 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 563 |
564 case EXTERNAL_INT_ELEMENTS: | 564 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
565 case EXTERNAL_UNSIGNED_INT_ELEMENTS: | 565 #undef TYPED_ARRAY_CASE |
566 case EXTERNAL_FLOAT_ELEMENTS: | |
567 case EXTERNAL_DOUBLE_ELEMENTS: | |
568 case EXTERNAL_PIXEL_ELEMENTS: | |
569 case UINT8_ELEMENTS: | |
570 case INT8_ELEMENTS: | |
571 case UINT16_ELEMENTS: | |
572 case INT16_ELEMENTS: | |
573 case UINT32_ELEMENTS: | |
574 case INT32_ELEMENTS: | |
575 case FLOAT32_ELEMENTS: | |
576 case FLOAT64_ELEMENTS: | |
577 case UINT8_CLAMPED_ELEMENTS: | |
578 UNREACHABLE(); | 566 UNREACHABLE(); |
579 break; | 567 break; |
580 case DICTIONARY_ELEMENTS: | 568 case DICTIONARY_ELEMENTS: |
581 KeyedStoreStubCompiler::GenerateStoreDictionaryElement(masm); | 569 KeyedStoreStubCompiler::GenerateStoreDictionaryElement(masm); |
582 break; | 570 break; |
583 case NON_STRICT_ARGUMENTS_ELEMENTS: | 571 case NON_STRICT_ARGUMENTS_ELEMENTS: |
584 UNREACHABLE(); | 572 UNREACHABLE(); |
585 break; | 573 break; |
586 } | 574 } |
587 } | 575 } |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 InstallDescriptor(isolate, &stub3); | 811 InstallDescriptor(isolate, &stub3); |
824 } | 812 } |
825 | 813 |
826 InternalArrayConstructorStub::InternalArrayConstructorStub( | 814 InternalArrayConstructorStub::InternalArrayConstructorStub( |
827 Isolate* isolate) { | 815 Isolate* isolate) { |
828 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 816 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
829 } | 817 } |
830 | 818 |
831 | 819 |
832 } } // namespace v8::internal | 820 } } // namespace v8::internal |
OLD | NEW |