Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 663 | 663 |
| 664 private: | 664 private: |
| 665 Handle<Code> GetCode(PropertyType type, Handle<String> name); | 665 Handle<Code> GetCode(PropertyType type, Handle<String> name); |
| 666 | 666 |
| 667 StrictModeFlag strict_mode_; | 667 StrictModeFlag strict_mode_; |
| 668 }; | 668 }; |
| 669 | 669 |
| 670 | 670 |
| 671 class KeyedStoreStubCompiler: public StubCompiler { | 671 class KeyedStoreStubCompiler: public StubCompiler { |
| 672 public: | 672 public: |
| 673 KeyedStoreStubCompiler(Isolate* isolate, StrictModeFlag strict_mode) | 673 KeyedStoreStubCompiler(Isolate* isolate, |
| 674 : StubCompiler(isolate), strict_mode_(strict_mode) { } | 674 StrictModeFlag strict_mode, |
| 675 KeyedAccessGrowMode grow_mode) | |
| 676 : StubCompiler(isolate), | |
| 677 strict_mode_(strict_mode), | |
| 678 grow_mode_(grow_mode) { } | |
| 675 | 679 |
| 676 Handle<Code> CompileStoreField(Handle<JSObject> object, | 680 Handle<Code> CompileStoreField(Handle<JSObject> object, |
| 677 int index, | 681 int index, |
| 678 Handle<Map> transition, | 682 Handle<Map> transition, |
| 679 Handle<String> name); | 683 Handle<String> name); |
| 680 | 684 |
| 681 Handle<Code> CompileStoreElement(Handle<Map> receiver_map); | 685 Handle<Code> CompileStoreElement(Handle<Map> receiver_map); |
| 682 | 686 |
| 683 Handle<Code> CompileStorePolymorphic(MapHandleList* receiver_maps, | 687 Handle<Code> CompileStorePolymorphic(MapHandleList* receiver_maps, |
| 684 CodeHandleList* handler_stubs, | 688 CodeHandleList* handler_stubs, |
| 685 MapHandleList* transitioned_maps); | 689 MapHandleList* transitioned_maps); |
| 686 | 690 |
| 687 static void GenerateStoreFastElement(MacroAssembler* masm, | 691 static void GenerateStoreFastElement(MacroAssembler* masm, |
| 688 bool is_js_array, | 692 bool is_js_array, |
| 689 ElementsKind element_kind); | 693 ElementsKind element_kind, |
| 694 KeyedAccessGrowMode grow_mode); | |
| 690 | 695 |
| 691 static void GenerateStoreFastDoubleElement(MacroAssembler* masm, | 696 static void GenerateStoreFastDoubleElement(MacroAssembler* masm, |
| 692 bool is_js_array); | 697 bool is_js_array, |
| 698 KeyedAccessGrowMode grow_mode); | |
| 693 | 699 |
| 694 static void GenerateStoreExternalArray(MacroAssembler* masm, | 700 static void GenerateStoreExternalArray(MacroAssembler* masm, |
| 695 ElementsKind elements_kind); | 701 ElementsKind elements_kind); |
| 696 | 702 |
| 697 static void GenerateStoreDictionaryElement(MacroAssembler* masm); | 703 static void GenerateStoreDictionaryElement(MacroAssembler* masm); |
| 698 | 704 |
| 699 private: | 705 private: |
| 700 Handle<Code> GetCode(PropertyType type, | 706 Handle<Code> GetCode( |
| 701 Handle<String> name, | 707 PropertyType type, |
|
Jakob Kummerow
2012/02/09 14:51:25
Why this formatting change?
danno
2012/02/10 12:25:34
Done.
| |
| 702 InlineCacheState state = MONOMORPHIC); | 708 Handle<String> name, |
| 709 InlineCacheState state = MONOMORPHIC); | |
| 703 | 710 |
| 704 StrictModeFlag strict_mode_; | 711 StrictModeFlag strict_mode_; |
| 712 KeyedAccessGrowMode grow_mode_; | |
| 705 }; | 713 }; |
| 706 | 714 |
| 707 | 715 |
| 708 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call | 716 // Subset of FUNCTIONS_WITH_ID_LIST with custom constant/global call |
| 709 // IC stubs. | 717 // IC stubs. |
| 710 #define CUSTOM_CALL_IC_GENERATORS(V) \ | 718 #define CUSTOM_CALL_IC_GENERATORS(V) \ |
| 711 V(ArrayPush) \ | 719 V(ArrayPush) \ |
| 712 V(ArrayPop) \ | 720 V(ArrayPop) \ |
| 713 V(StringCharCodeAt) \ | 721 V(StringCharCodeAt) \ |
| 714 V(StringCharAt) \ | 722 V(StringCharAt) \ |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 860 Handle<JSFunction> constant_function_; | 868 Handle<JSFunction> constant_function_; |
| 861 bool is_simple_api_call_; | 869 bool is_simple_api_call_; |
| 862 Handle<FunctionTemplateInfo> expected_receiver_type_; | 870 Handle<FunctionTemplateInfo> expected_receiver_type_; |
| 863 Handle<CallHandlerInfo> api_call_info_; | 871 Handle<CallHandlerInfo> api_call_info_; |
| 864 }; | 872 }; |
| 865 | 873 |
| 866 | 874 |
| 867 } } // namespace v8::internal | 875 } } // namespace v8::internal |
| 868 | 876 |
| 869 #endif // V8_STUB_CACHE_H_ | 877 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |