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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // These are similar to the generic IC; they optimize the case of | 273 // These are similar to the generic IC; they optimize the case of |
274 // operating upon external array types but fall back to the runtime | 274 // operating upon external array types but fall back to the runtime |
275 // for all other types. | 275 // for all other types. |
276 static void GenerateExternalArray(MacroAssembler* masm, | 276 static void GenerateExternalArray(MacroAssembler* masm, |
277 ExternalArrayType array_type); | 277 ExternalArrayType array_type); |
278 | 278 |
279 // Clear the use of the inlined version. | 279 // Clear the use of the inlined version. |
280 static void ClearInlinedVersion(Address address); | 280 static void ClearInlinedVersion(Address address); |
281 | 281 |
282 private: | 282 private: |
| 283 // Bit mask to be tested against bit field for the cases when |
| 284 // generic stub should go into slow case. |
| 285 // Access check is necessary explicitly since generic stub does not perform |
| 286 // map checks. |
| 287 static const int kSlowCaseBitFieldMask = |
| 288 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); |
| 289 |
283 static void Generate(MacroAssembler* masm, const ExternalReference& f); | 290 static void Generate(MacroAssembler* masm, const ExternalReference& f); |
284 | 291 |
285 // Update the inline cache. | 292 // Update the inline cache. |
286 void UpdateCaches(LookupResult* lookup, | 293 void UpdateCaches(LookupResult* lookup, |
287 State state, | 294 State state, |
288 Handle<Object> object, | 295 Handle<Object> object, |
289 Handle<String> name); | 296 Handle<String> name); |
290 | 297 |
291 // Stub accessors. | 298 // Stub accessors. |
292 static Code* initialize_stub() { | 299 static Code* initialize_stub() { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // The map is the new map that the inlined code should check against. | 418 // The map is the new map that the inlined code should check against. |
412 static bool PatchInlinedStore(Address address, Object* map); | 419 static bool PatchInlinedStore(Address address, Object* map); |
413 | 420 |
414 friend class IC; | 421 friend class IC; |
415 }; | 422 }; |
416 | 423 |
417 | 424 |
418 } } // namespace v8::internal | 425 } } // namespace v8::internal |
419 | 426 |
420 #endif // V8_IC_H_ | 427 #endif // V8_IC_H_ |
OLD | NEW |