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

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

Issue 19367003: Reland "Turn ElementsTransitionAndStore stub into a HydrogenCodeStub". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test case. Created 7 years, 5 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 || Contains(ToBooleanStub::HEAP_NUMBER); 811 || Contains(ToBooleanStub::HEAP_NUMBER);
812 } 812 }
813 813
814 814
815 bool ToBooleanStub::Types::CanBeUndetectable() const { 815 bool ToBooleanStub::Types::CanBeUndetectable() const {
816 return Contains(ToBooleanStub::SPEC_OBJECT) 816 return Contains(ToBooleanStub::SPEC_OBJECT)
817 || Contains(ToBooleanStub::STRING); 817 || Contains(ToBooleanStub::STRING);
818 } 818 }
819 819
820 820
821 void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) { 821 void ElementsTransitionAndStorePlatformStub::Generate(MacroAssembler* masm) {
822 Label fail; 822 Label fail;
823 AllocationSiteMode mode = AllocationSite::GetMode(from_, to_); 823 AllocationSiteMode mode = AllocationSite::GetMode(from_, to_);
824 ASSERT(!IsFastHoleyElementsKind(from_) || IsFastHoleyElementsKind(to_)); 824 ASSERT(!IsFastHoleyElementsKind(from_) || IsFastHoleyElementsKind(to_));
825 if (!FLAG_trace_elements_transitions) { 825 if (!FLAG_trace_elements_transitions) {
826 if (IsFastSmiOrObjectElementsKind(to_)) { 826 if (IsFastSmiOrObjectElementsKind(to_)) {
827 if (IsFastSmiOrObjectElementsKind(from_)) { 827 if (IsFastSmiOrObjectElementsKind(from_)) {
828 ElementsTransitionGenerator:: 828 ElementsTransitionGenerator::
829 GenerateMapChangeElementsTransition(masm, mode, &fail); 829 GenerateMapChangeElementsTransition(masm, mode, &fail);
830 } else if (IsFastDoubleElementsKind(from_)) { 830 } else if (IsFastDoubleElementsKind(from_)) {
831 ASSERT(!IsFastSmiElementsKind(to_)); 831 ASSERT(!IsFastSmiElementsKind(to_));
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 InstallDescriptor(isolate, &stub3); 922 InstallDescriptor(isolate, &stub3);
923 } 923 }
924 924
925 InternalArrayConstructorStub::InternalArrayConstructorStub( 925 InternalArrayConstructorStub::InternalArrayConstructorStub(
926 Isolate* isolate) { 926 Isolate* isolate) {
927 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 927 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
928 } 928 }
929 929
930 930
931 } } // namespace v8::internal 931 } } // 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