| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // These are similar to the generic IC; they optimize the case of | 294 // These are similar to the generic IC; they optimize the case of |
| 295 // operating upon external array types but fall back to the runtime | 295 // operating upon external array types but fall back to the runtime |
| 296 // for all other types. | 296 // for all other types. |
| 297 static void GenerateExternalArray(MacroAssembler* masm, | 297 static void GenerateExternalArray(MacroAssembler* masm, |
| 298 ExternalArrayType array_type); | 298 ExternalArrayType array_type); |
| 299 static void GenerateIndexedInterceptor(MacroAssembler* masm); | 299 static void GenerateIndexedInterceptor(MacroAssembler* masm); |
| 300 | 300 |
| 301 // Clear the use of the inlined version. | 301 // Clear the use of the inlined version. |
| 302 static void ClearInlinedVersion(Address address); | 302 static void ClearInlinedVersion(Address address); |
| 303 | 303 |
| 304 private: | |
| 305 // Bit mask to be tested against bit field for the cases when | 304 // Bit mask to be tested against bit field for the cases when |
| 306 // generic stub should go into slow case. | 305 // generic stub should go into slow case. |
| 307 // Access check is necessary explicitly since generic stub does not perform | 306 // Access check is necessary explicitly since generic stub does not perform |
| 308 // map checks. | 307 // map checks. |
| 309 static const int kSlowCaseBitFieldMask = | 308 static const int kSlowCaseBitFieldMask = |
| 310 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); | 309 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); |
| 311 | 310 |
| 311 private: |
| 312 // Update the inline cache. | 312 // Update the inline cache. |
| 313 void UpdateCaches(LookupResult* lookup, | 313 void UpdateCaches(LookupResult* lookup, |
| 314 State state, | 314 State state, |
| 315 Handle<Object> object, | 315 Handle<Object> object, |
| 316 Handle<String> name); | 316 Handle<String> name); |
| 317 | 317 |
| 318 // Stub accessors. | 318 // Stub accessors. |
| 319 static Code* initialize_stub() { | 319 static Code* initialize_stub() { |
| 320 return Builtins::builtin(Builtins::KeyedLoadIC_Initialize); | 320 return Builtins::builtin(Builtins::KeyedLoadIC_Initialize); |
| 321 } | 321 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 static const char* GetName(TypeInfo type_info); | 465 static const char* GetName(TypeInfo type_info); |
| 466 | 466 |
| 467 static State ToState(TypeInfo type_info); | 467 static State ToState(TypeInfo type_info); |
| 468 | 468 |
| 469 static TypeInfo GetTypeInfo(Object* left, Object* right); | 469 static TypeInfo GetTypeInfo(Object* left, Object* right); |
| 470 }; | 470 }; |
| 471 | 471 |
| 472 } } // namespace v8::internal | 472 } } // namespace v8::internal |
| 473 | 473 |
| 474 #endif // V8_IC_H_ | 474 #endif // V8_IC_H_ |
| OLD | NEW |