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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 // These are similar to the generic IC; they optimize the case of | 286 // These are similar to the generic IC; they optimize the case of |
287 // operating upon external array types but fall back to the runtime | 287 // operating upon external array types but fall back to the runtime |
288 // for all other types. | 288 // for all other types. |
289 static void GenerateExternalArray(MacroAssembler* masm, | 289 static void GenerateExternalArray(MacroAssembler* masm, |
290 ExternalArrayType array_type); | 290 ExternalArrayType array_type); |
291 | 291 |
292 // Clear the use of the inlined version. | 292 // Clear the use of the inlined version. |
293 static void ClearInlinedVersion(Address address); | 293 static void ClearInlinedVersion(Address address); |
294 | 294 |
295 private: | 295 private: |
| 296 // Bit mask to be tested against bit field for the cases when |
| 297 // generic stub should go into slow case. |
| 298 // Access check is necessary explicitly since generic stub does not perform |
| 299 // map checks. |
| 300 static const int kSlowCaseBitFieldMask = |
| 301 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); |
| 302 |
296 static void Generate(MacroAssembler* masm, const ExternalReference& f); | 303 static void Generate(MacroAssembler* masm, const ExternalReference& f); |
297 | 304 |
298 // Update the inline cache. | 305 // Update the inline cache. |
299 void UpdateCaches(LookupResult* lookup, | 306 void UpdateCaches(LookupResult* lookup, |
300 State state, | 307 State state, |
301 Handle<Object> object, | 308 Handle<Object> object, |
302 Handle<String> name); | 309 Handle<String> name); |
303 | 310 |
304 // Stub accessors. | 311 // Stub accessors. |
305 static Code* initialize_stub() { | 312 static Code* initialize_stub() { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // The map is the new map that the inlined code should check against. | 434 // The map is the new map that the inlined code should check against. |
428 static bool PatchInlinedStore(Address address, Object* map); | 435 static bool PatchInlinedStore(Address address, Object* map); |
429 | 436 |
430 friend class IC; | 437 friend class IC; |
431 }; | 438 }; |
432 | 439 |
433 | 440 |
434 } } // namespace v8::internal | 441 } } // namespace v8::internal |
435 | 442 |
436 #endif // V8_IC_H_ | 443 #endif // V8_IC_H_ |
OLD | NEW |