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

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

Issue 196133017: Experimental parser: merge r19949 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 case EXTERNAL_##TYPE##_ELEMENTS: \ 554 case EXTERNAL_##TYPE##_ELEMENTS: \
555 case TYPE##_ELEMENTS: 555 case TYPE##_ELEMENTS:
556 556
557 TYPED_ARRAYS(TYPED_ARRAY_CASE) 557 TYPED_ARRAYS(TYPED_ARRAY_CASE)
558 #undef TYPED_ARRAY_CASE 558 #undef TYPED_ARRAY_CASE
559 UNREACHABLE(); 559 UNREACHABLE();
560 break; 560 break;
561 case DICTIONARY_ELEMENTS: 561 case DICTIONARY_ELEMENTS:
562 KeyedStoreStubCompiler::GenerateStoreDictionaryElement(masm); 562 KeyedStoreStubCompiler::GenerateStoreDictionaryElement(masm);
563 break; 563 break;
564 case NON_STRICT_ARGUMENTS_ELEMENTS: 564 case SLOPPY_ARGUMENTS_ELEMENTS:
565 UNREACHABLE(); 565 UNREACHABLE();
566 break; 566 break;
567 } 567 }
568 } 568 }
569 569
570 570
571 void ArgumentsAccessStub::PrintName(StringStream* stream) { 571 void ArgumentsAccessStub::PrintName(StringStream* stream) {
572 stream->Add("ArgumentsAccessStub_"); 572 stream->Add("ArgumentsAccessStub_");
573 switch (type_) { 573 switch (type_) {
574 case READ_ELEMENT: stream->Add("ReadElement"); break; 574 case READ_ELEMENT: stream->Add("ReadElement"); break;
575 case NEW_NON_STRICT_FAST: stream->Add("NewNonStrictFast"); break; 575 case NEW_SLOPPY_FAST: stream->Add("NewSloppyFast"); break;
576 case NEW_NON_STRICT_SLOW: stream->Add("NewNonStrictSlow"); break; 576 case NEW_SLOPPY_SLOW: stream->Add("NewSloppySlow"); break;
577 case NEW_STRICT: stream->Add("NewStrict"); break; 577 case NEW_STRICT: stream->Add("NewStrict"); break;
578 } 578 }
579 } 579 }
580 580
581 581
582 void CallFunctionStub::PrintName(StringStream* stream) { 582 void CallFunctionStub::PrintName(StringStream* stream) {
583 stream->Add("CallFunctionStub_Args%d", argc_); 583 stream->Add("CallFunctionStub_Args%d", argc_);
584 if (RecordCallTarget()) stream->Add("_Recording"); 584 if (RecordCallTarget()) stream->Add("_Recording");
585 } 585 }
586 586
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 } 729 }
730 730
731 731
732 void NumberToStringStub::InstallDescriptors(Isolate* isolate) { 732 void NumberToStringStub::InstallDescriptors(Isolate* isolate) {
733 NumberToStringStub stub; 733 NumberToStringStub stub;
734 InstallDescriptor(isolate, &stub); 734 InstallDescriptor(isolate, &stub);
735 } 735 }
736 736
737 737
738 void FastNewClosureStub::InstallDescriptors(Isolate* isolate) { 738 void FastNewClosureStub::InstallDescriptors(Isolate* isolate) {
739 FastNewClosureStub stub(STRICT_MODE, false); 739 FastNewClosureStub stub(STRICT, false);
740 InstallDescriptor(isolate, &stub); 740 InstallDescriptor(isolate, &stub);
741 } 741 }
742 742
743 743
744 void FastNewContextStub::InstallDescriptors(Isolate* isolate) { 744 void FastNewContextStub::InstallDescriptors(Isolate* isolate) {
745 FastNewContextStub stub(FastNewContextStub::kMaximumSlots); 745 FastNewContextStub stub(FastNewContextStub::kMaximumSlots);
746 InstallDescriptor(isolate, &stub); 746 InstallDescriptor(isolate, &stub);
747 } 747 }
748 748
749 749
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 InstallDescriptor(isolate, &stub3); 813 InstallDescriptor(isolate, &stub3);
814 } 814 }
815 815
816 InternalArrayConstructorStub::InternalArrayConstructorStub( 816 InternalArrayConstructorStub::InternalArrayConstructorStub(
817 Isolate* isolate) { 817 Isolate* isolate) {
818 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 818 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
819 } 819 }
820 820
821 821
822 } } // namespace v8::internal 822 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698