OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 int index, | 696 int index, |
697 Map* transition, | 697 Map* transition, |
698 String* name); | 698 String* name); |
699 | 699 |
700 MUST_USE_RESULT MaybeObject* CompileStoreElement(Map* receiver_map); | 700 MUST_USE_RESULT MaybeObject* CompileStoreElement(Map* receiver_map); |
701 | 701 |
702 MUST_USE_RESULT MaybeObject* CompileStoreMegamorphic( | 702 MUST_USE_RESULT MaybeObject* CompileStoreMegamorphic( |
703 MapList* receiver_maps, | 703 MapList* receiver_maps, |
704 CodeList* handler_ics); | 704 CodeList* handler_ics); |
705 | 705 |
| 706 enum StoreObjectAction { |
| 707 kObjectStoreCausesWriteBarrier, |
| 708 kObjectStoreForcesGeneric |
| 709 }; |
| 710 |
706 static void GenerateStoreFastElement(MacroAssembler* masm, | 711 static void GenerateStoreFastElement(MacroAssembler* masm, |
707 bool is_js_array); | 712 bool is_js_array, |
| 713 StoreObjectAction store_object_action); |
708 | 714 |
709 static void GenerateStoreFastDoubleElement(MacroAssembler* masm, | 715 static void GenerateStoreFastDoubleElement(MacroAssembler* masm, |
710 bool is_js_array); | 716 bool is_js_array); |
711 | 717 |
712 static void GenerateStoreExternalArray(MacroAssembler* masm, | 718 static void GenerateStoreExternalArray(MacroAssembler* masm, |
713 ElementsKind elements_kind); | 719 ElementsKind elements_kind); |
714 | 720 |
715 static void GenerateStoreDictionaryElement(MacroAssembler* masm); | 721 static void GenerateStoreDictionaryElement(MacroAssembler* masm); |
716 | 722 |
717 private: | 723 private: |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 JSFunction* constant_function_; | 892 JSFunction* constant_function_; |
887 bool is_simple_api_call_; | 893 bool is_simple_api_call_; |
888 FunctionTemplateInfo* expected_receiver_type_; | 894 FunctionTemplateInfo* expected_receiver_type_; |
889 CallHandlerInfo* api_call_info_; | 895 CallHandlerInfo* api_call_info_; |
890 }; | 896 }; |
891 | 897 |
892 | 898 |
893 } } // namespace v8::internal | 899 } } // namespace v8::internal |
894 | 900 |
895 #endif // V8_STUB_CACHE_H_ | 901 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |