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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 namespace v8 { namespace internal { | 33 namespace v8 { namespace internal { |
34 | 34 |
35 // IC_UTIL_LIST defines all utility functions called from generated | 35 // IC_UTIL_LIST defines all utility functions called from generated |
36 // inline caching code. The argument for the macro, ICU, is the function name. | 36 // inline caching code. The argument for the macro, ICU, is the function name. |
37 #define IC_UTIL_LIST(ICU) \ | 37 #define IC_UTIL_LIST(ICU) \ |
38 ICU(LoadIC_Miss) \ | 38 ICU(LoadIC_Miss) \ |
39 ICU(KeyedLoadIC_Miss) \ | 39 ICU(KeyedLoadIC_Miss) \ |
40 ICU(CallIC_Miss) \ | 40 ICU(CallIC_Miss) \ |
41 ICU(StoreIC_Miss) \ | 41 ICU(StoreIC_Miss) \ |
| 42 ICU(StoreIC_ExtendStorage) \ |
42 ICU(KeyedStoreIC_Miss) \ | 43 ICU(KeyedStoreIC_Miss) \ |
43 /* Utilities for IC stubs. */ \ | 44 /* Utilities for IC stubs. */ \ |
44 ICU(LoadCallbackProperty) \ | 45 ICU(LoadCallbackProperty) \ |
45 ICU(StoreCallbackProperty) \ | 46 ICU(StoreCallbackProperty) \ |
46 ICU(LoadInterceptorProperty) \ | 47 ICU(LoadInterceptorProperty) \ |
47 ICU(StoreInterceptorProperty) | 48 ICU(StoreInterceptorProperty) |
48 | 49 |
49 // | 50 // |
50 // IC is the base class for LoadIC, StoreIC and CallIC. | 51 // IC is the base class for LoadIC, StoreIC and CallIC. |
51 // | 52 // |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 288 |
288 Object* Store(State state, | 289 Object* Store(State state, |
289 Handle<Object> object, | 290 Handle<Object> object, |
290 Handle<String> name, | 291 Handle<String> name, |
291 Handle<Object> value); | 292 Handle<Object> value); |
292 | 293 |
293 // Code generators for stub routines. Only called once at startup. | 294 // Code generators for stub routines. Only called once at startup. |
294 static void GenerateInitialize(MacroAssembler* masm); | 295 static void GenerateInitialize(MacroAssembler* masm); |
295 static void GenerateMiss(MacroAssembler* masm); | 296 static void GenerateMiss(MacroAssembler* masm); |
296 static void GenerateMegamorphic(MacroAssembler* masm); | 297 static void GenerateMegamorphic(MacroAssembler* masm); |
| 298 static void GenerateExtendStorage(MacroAssembler* masm); |
297 | 299 |
298 private: | 300 private: |
299 static void Generate(MacroAssembler* masm, const ExternalReference& f); | 301 static void Generate(MacroAssembler* masm, const ExternalReference& f); |
300 | 302 |
301 // Update the inline cache and the global stub cache based on the | 303 // Update the inline cache and the global stub cache based on the |
302 // lookup result. | 304 // lookup result. |
303 void UpdateCaches(LookupResult* lookup, | 305 void UpdateCaches(LookupResult* lookup, |
304 State state, Handle<JSObject> receiver, | 306 State state, Handle<JSObject> receiver, |
305 Handle<String> name, | 307 Handle<String> name, |
306 Handle<Object> value); | 308 Handle<Object> value); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 356 } |
355 | 357 |
356 static void Clear(Address address, Code* target); | 358 static void Clear(Address address, Code* target); |
357 friend class IC; | 359 friend class IC; |
358 }; | 360 }; |
359 | 361 |
360 | 362 |
361 } } // namespace v8::internal | 363 } } // namespace v8::internal |
362 | 364 |
363 #endif // V8_IC_H_ | 365 #endif // V8_IC_H_ |
OLD | NEW |