Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: src/code-stubs.cc

Issue 145133013: External Array renaming and boilerplate scrapping (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« src/api.cc ('K') | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698