OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 Label* index_not_number, | 776 Label* index_not_number, |
777 Label* index_out_of_range, | 777 Label* index_out_of_range, |
778 StringIndexFlags index_flags) | 778 StringIndexFlags index_flags) |
779 : object_(object), | 779 : object_(object), |
780 index_(index), | 780 index_(index), |
781 result_(result), | 781 result_(result), |
782 receiver_not_string_(receiver_not_string), | 782 receiver_not_string_(receiver_not_string), |
783 index_not_number_(index_not_number), | 783 index_not_number_(index_not_number), |
784 index_out_of_range_(index_out_of_range), | 784 index_out_of_range_(index_out_of_range), |
785 index_flags_(index_flags) { | 785 index_flags_(index_flags) { |
786 ASSERT(!scratch_.is(object_)); | |
787 ASSERT(!scratch_.is(index_)); | |
788 ASSERT(!scratch_.is(result_)); | |
789 ASSERT(!result_.is(object_)); | 786 ASSERT(!result_.is(object_)); |
790 ASSERT(!result_.is(index_)); | 787 ASSERT(!result_.is(index_)); |
791 } | 788 } |
792 | 789 |
793 // Generates the fast case code. On the fallthrough path |result| | 790 // Generates the fast case code. On the fallthrough path |result| |
794 // register contains the result. | 791 // register contains the result. |
795 void GenerateFast(MacroAssembler* masm); | 792 void GenerateFast(MacroAssembler* masm); |
796 | 793 |
797 // Generates the slow case code. Must not be naturally | 794 // Generates the slow case code. Must not be naturally |
798 // reachable. Expected to be put after a ret instruction (e.g., in | 795 // reachable. Expected to be put after a ret instruction (e.g., in |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 int MinorKey() { return 0; } | 1065 int MinorKey() { return 0; } |
1069 | 1066 |
1070 void Generate(MacroAssembler* masm); | 1067 void Generate(MacroAssembler* masm); |
1071 | 1068 |
1072 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); | 1069 DISALLOW_COPY_AND_ASSIGN(StoreArrayLiteralElementStub); |
1073 }; | 1070 }; |
1074 | 1071 |
1075 } } // namespace v8::internal | 1072 } } // namespace v8::internal |
1076 | 1073 |
1077 #endif // V8_CODE_STUBS_H_ | 1074 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |