OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 static void GenerateNormal(MacroAssembler* masm); | 214 static void GenerateNormal(MacroAssembler* masm); |
215 | 215 |
216 // Specialized code generator routines. | 216 // Specialized code generator routines. |
217 static void GenerateArrayLength(MacroAssembler* masm); | 217 static void GenerateArrayLength(MacroAssembler* masm); |
218 static void GenerateStringLength(MacroAssembler* masm); | 218 static void GenerateStringLength(MacroAssembler* masm); |
219 static void GenerateFunctionPrototype(MacroAssembler* masm); | 219 static void GenerateFunctionPrototype(MacroAssembler* masm); |
220 | 220 |
221 // The offset from the inlined patch site to the start of the | 221 // The offset from the inlined patch site to the start of the |
222 // inlined load instruction. It is 7 bytes (test eax, imm) plus | 222 // inlined load instruction. It is 7 bytes (test eax, imm) plus |
223 // 6 bytes (jne slow_label). | 223 // 6 bytes (jne slow_label). |
224 static const int kOffsetToLoadInstruction = 13; | 224 static const int kOffsetToLoadInstruction; |
225 | 225 |
226 private: | 226 private: |
227 static void Generate(MacroAssembler* masm, const ExternalReference& f); | 227 static void Generate(MacroAssembler* masm, const ExternalReference& f); |
228 | 228 |
229 // Update the inline cache and the global stub cache based on the | 229 // Update the inline cache and the global stub cache based on the |
230 // lookup result. | 230 // lookup result. |
231 void UpdateCaches(LookupResult* lookup, | 231 void UpdateCaches(LookupResult* lookup, |
232 State state, | 232 State state, |
233 Handle<Object> object, | 233 Handle<Object> object, |
234 Handle<String> name); | 234 Handle<String> name); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 // version of keyed store. | 389 // version of keyed store. |
390 static bool PatchInlinedStore(Address address, Object* map); | 390 static bool PatchInlinedStore(Address address, Object* map); |
391 | 391 |
392 friend class IC; | 392 friend class IC; |
393 }; | 393 }; |
394 | 394 |
395 | 395 |
396 } } // namespace v8::internal | 396 } } // namespace v8::internal |
397 | 397 |
398 #endif // V8_IC_H_ | 398 #endif // V8_IC_H_ |
OLD | NEW |