| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 typedef double (*UnaryMathFunction)(double x); | 92 typedef double (*UnaryMathFunction)(double x); |
| 93 | 93 |
| 94 UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type); | 94 UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type); |
| 95 UnaryMathFunction CreateExpFunction(); | 95 UnaryMathFunction CreateExpFunction(); |
| 96 UnaryMathFunction CreateSqrtFunction(); | 96 UnaryMathFunction CreateSqrtFunction(); |
| 97 | 97 |
| 98 | 98 |
| 99 class ElementsTransitionGenerator : public AllStatic { | 99 class ElementsTransitionGenerator : public AllStatic { |
| 100 public: | 100 public: |
| 101 // If |mode| is set to DONT_TRACK_ALLOCATION_SITE, | 101 // If |mode| is set to DONT_TRACK_ALLOCATION_SITE, |
| 102 // |allocation_site_info_found| may be NULL. | 102 // |allocation_memento_found| may be NULL. |
| 103 static void GenerateMapChangeElementsTransition(MacroAssembler* masm, | 103 static void GenerateMapChangeElementsTransition(MacroAssembler* masm, |
| 104 AllocationSiteMode mode, | 104 AllocationSiteMode mode, |
| 105 Label* allocation_site_info_found); | 105 Label* allocation_memento_found); |
| 106 static void GenerateSmiToDouble(MacroAssembler* masm, | 106 static void GenerateSmiToDouble(MacroAssembler* masm, |
| 107 AllocationSiteMode mode, | 107 AllocationSiteMode mode, |
| 108 Label* fail); | 108 Label* fail); |
| 109 static void GenerateDoubleToObject(MacroAssembler* masm, | 109 static void GenerateDoubleToObject(MacroAssembler* masm, |
| 110 AllocationSiteMode mode, | 110 AllocationSiteMode mode, |
| 111 Label* fail); | 111 Label* fail); |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator); | 114 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 | 117 |
| 118 } } // namespace v8::internal | 118 } } // namespace v8::internal |
| 119 | 119 |
| 120 #endif // V8_CODEGEN_H_ | 120 #endif // V8_CODEGEN_H_ |
| OLD | NEW |