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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 | 685 |
686 | 686 |
687 bool ToBooleanStub::Types::CanBeUndetectable() const { | 687 bool ToBooleanStub::Types::CanBeUndetectable() const { |
688 return Contains(ToBooleanStub::SPEC_OBJECT) | 688 return Contains(ToBooleanStub::SPEC_OBJECT) |
689 || Contains(ToBooleanStub::STRING); | 689 || Contains(ToBooleanStub::STRING); |
690 } | 690 } |
691 | 691 |
692 | 692 |
693 void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) { | 693 void ElementsTransitionAndStoreStub::Generate(MacroAssembler* masm) { |
694 Label fail; | 694 Label fail; |
695 AllocationSiteMode mode = AllocationSiteInfo::GetMode(from_, to_); | 695 AllocationSiteMode mode = AllocationSite::GetMode(from_, to_); |
696 ASSERT(!IsFastHoleyElementsKind(from_) || IsFastHoleyElementsKind(to_)); | 696 ASSERT(!IsFastHoleyElementsKind(from_) || IsFastHoleyElementsKind(to_)); |
697 if (!FLAG_trace_elements_transitions) { | 697 if (!FLAG_trace_elements_transitions) { |
698 if (IsFastSmiOrObjectElementsKind(to_)) { | 698 if (IsFastSmiOrObjectElementsKind(to_)) { |
699 if (IsFastSmiOrObjectElementsKind(from_)) { | 699 if (IsFastSmiOrObjectElementsKind(from_)) { |
700 ElementsTransitionGenerator:: | 700 ElementsTransitionGenerator:: |
701 GenerateMapChangeElementsTransition(masm, mode, &fail); | 701 GenerateMapChangeElementsTransition(masm, mode, &fail); |
702 } else if (IsFastDoubleElementsKind(from_)) { | 702 } else if (IsFastDoubleElementsKind(from_)) { |
703 ASSERT(!IsFastSmiElementsKind(to_)); | 703 ASSERT(!IsFastSmiElementsKind(to_)); |
704 ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, &fail); | 704 ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, &fail); |
705 } else { | 705 } else { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 InstallDescriptor(isolate, &stub3); | 807 InstallDescriptor(isolate, &stub3); |
808 } | 808 } |
809 | 809 |
810 InternalArrayConstructorStub::InternalArrayConstructorStub( | 810 InternalArrayConstructorStub::InternalArrayConstructorStub( |
811 Isolate* isolate) { | 811 Isolate* isolate) { |
812 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 812 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
813 } | 813 } |
814 | 814 |
815 | 815 |
816 } } // namespace v8::internal | 816 } } // namespace v8::internal |
OLD | NEW |