| 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 | 1047 |
| 1048 Major MajorKey() { return FastElementsConversion; } | 1048 Major MajorKey() { return FastElementsConversion; } |
| 1049 int MinorKey() { | 1049 int MinorKey() { |
| 1050 return FromBits::encode(from_) | | 1050 return FromBits::encode(from_) | |
| 1051 ToBits::encode(to_) | | 1051 ToBits::encode(to_) | |
| 1052 IsJSArrayBits::encode(is_jsarray_) | | 1052 IsJSArrayBits::encode(is_jsarray_) | |
| 1053 StrictModeBits::encode(strict_mode_); | 1053 StrictModeBits::encode(strict_mode_); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 void Generate(MacroAssembler* masm); | 1056 void Generate(MacroAssembler* masm); |
| 1057 static void GenerateSmiOnlyToObject(MacroAssembler* masm); | 1057 static void GenerateSmiOnlyToObject(MacroAssembler* masm, |
| 1058 StrictModeFlag strict_mode); |
| 1058 static void GenerateSmiOnlyToDouble(MacroAssembler* masm, | 1059 static void GenerateSmiOnlyToDouble(MacroAssembler* masm, |
| 1059 StrictModeFlag strict_mode); | 1060 StrictModeFlag strict_mode); |
| 1060 static void GenerateDoubleToObject(MacroAssembler* masm, | 1061 static void GenerateDoubleToObject(MacroAssembler* masm, |
| 1061 StrictModeFlag strict_mode); | 1062 StrictModeFlag strict_mode); |
| 1062 | 1063 |
| 1063 ElementsKind from_; | 1064 ElementsKind from_; |
| 1064 ElementsKind to_; | 1065 ElementsKind to_; |
| 1065 bool is_jsarray_; | 1066 bool is_jsarray_; |
| 1066 StrictModeFlag strict_mode_; | 1067 StrictModeFlag strict_mode_; |
| 1067 | 1068 |
| 1068 DISALLOW_COPY_AND_ASSIGN(FastElementsConversionStub); | 1069 DISALLOW_COPY_AND_ASSIGN(FastElementsConversionStub); |
| 1069 }; | 1070 }; |
| 1070 | 1071 |
| 1071 } } // namespace v8::internal | 1072 } } // namespace v8::internal |
| 1072 | 1073 |
| 1073 #endif // V8_CODE_STUBS_H_ | 1074 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |