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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |