OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 // Code generator routines. | 205 // Code generator routines. |
206 static void GenerateInitialize(MacroAssembler* masm); | 206 static void GenerateInitialize(MacroAssembler* masm); |
207 static void GeneratePreMonomorphic(MacroAssembler* masm); | 207 static void GeneratePreMonomorphic(MacroAssembler* masm); |
208 static void GenerateMiss(MacroAssembler* masm); | 208 static void GenerateMiss(MacroAssembler* masm); |
209 static void GenerateMegamorphic(MacroAssembler* masm); | 209 static void GenerateMegamorphic(MacroAssembler* masm); |
210 static void GenerateNormal(MacroAssembler* masm); | 210 static void GenerateNormal(MacroAssembler* masm); |
211 | 211 |
212 // Specialized code generator routines. | 212 // Specialized code generator routines. |
213 static void GenerateArrayLength(MacroAssembler* masm); | 213 static void GenerateArrayLength(MacroAssembler* masm); |
214 static void GenerateShortStringLength(MacroAssembler* masm); | 214 static void GenerateStringLength(MacroAssembler* masm); |
215 static void GenerateMediumStringLength(MacroAssembler* masm); | |
216 static void GenerateLongStringLength(MacroAssembler* masm); | |
217 static void GenerateFunctionPrototype(MacroAssembler* masm); | 215 static void GenerateFunctionPrototype(MacroAssembler* masm); |
218 | 216 |
219 private: | 217 private: |
220 static void Generate(MacroAssembler* masm, const ExternalReference& f); | 218 static void Generate(MacroAssembler* masm, const ExternalReference& f); |
221 | 219 |
222 // Update the inline cache and the global stub cache based on the | 220 // Update the inline cache and the global stub cache based on the |
223 // lookup result. | 221 // lookup result. |
224 void UpdateCaches(LookupResult* lookup, | 222 void UpdateCaches(LookupResult* lookup, |
225 State state, | 223 State state, |
226 Handle<Object> object, | 224 Handle<Object> object, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 } | 355 } |
358 | 356 |
359 static void Clear(Address address, Code* target); | 357 static void Clear(Address address, Code* target); |
360 friend class IC; | 358 friend class IC; |
361 }; | 359 }; |
362 | 360 |
363 | 361 |
364 } } // namespace v8::internal | 362 } } // namespace v8::internal |
365 | 363 |
366 #endif // V8_IC_H_ | 364 #endif // V8_IC_H_ |
OLD | NEW |