OLD | NEW |
1 // Copyright 2012 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 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 Handle<Map> stub_holder_map, | 84 Handle<Map> stub_holder_map, |
85 Code::Kind kind, | 85 Code::Kind kind, |
86 ExtraICState extra_state = kNoExtraICState, | 86 ExtraICState extra_state = kNoExtraICState, |
87 InlineCacheHolderFlag cache_holder = OWN_MAP); | 87 InlineCacheHolderFlag cache_holder = OWN_MAP); |
88 | 88 |
89 Handle<Code> FindHandler(Handle<Name> name, | 89 Handle<Code> FindHandler(Handle<Name> name, |
90 Handle<Map> map, | 90 Handle<Map> map, |
91 Code::Kind kind, | 91 Code::Kind kind, |
92 InlineCacheHolderFlag cache_holder = OWN_MAP); | 92 InlineCacheHolderFlag cache_holder = OWN_MAP); |
93 | 93 |
94 Handle<Code> ComputeMonomorphicIC(Handle<Name> name, | 94 Handle<Code> ComputeMonomorphicIC(Code::Kind kind, |
| 95 Handle<Name> name, |
95 Handle<HeapType> type, | 96 Handle<HeapType> type, |
96 Handle<Code> handler, | 97 Handle<Code> handler, |
97 ExtraICState extra_ic_state); | 98 ExtraICState extra_ic_state); |
98 | 99 |
99 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, Handle<HeapType> type); | 100 Handle<Code> ComputeLoadNonexistent(Handle<Name> name, Handle<HeapType> type); |
100 | 101 |
101 Handle<Code> ComputeKeyedLoadElement(Handle<Map> receiver_map); | 102 Handle<Code> ComputeKeyedLoadElement(Handle<Map> receiver_map); |
102 | 103 |
103 Handle<Code> ComputeKeyedStoreElement(Handle<Map> receiver_map, | 104 Handle<Code> ComputeKeyedStoreElement(Handle<Map> receiver_map, |
104 StrictModeFlag strict_mode, | 105 StrictModeFlag strict_mode, |
(...skipping 10 matching lines...) Expand all Loading... |
115 Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, | 116 Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, |
116 CompareNilICStub& stub); | 117 CompareNilICStub& stub); |
117 | 118 |
118 // --- | 119 // --- |
119 | 120 |
120 Handle<Code> ComputeLoadElementPolymorphic(MapHandleList* receiver_maps); | 121 Handle<Code> ComputeLoadElementPolymorphic(MapHandleList* receiver_maps); |
121 Handle<Code> ComputeStoreElementPolymorphic(MapHandleList* receiver_maps, | 122 Handle<Code> ComputeStoreElementPolymorphic(MapHandleList* receiver_maps, |
122 KeyedAccessStoreMode store_mode, | 123 KeyedAccessStoreMode store_mode, |
123 StrictModeFlag strict_mode); | 124 StrictModeFlag strict_mode); |
124 | 125 |
125 Handle<Code> ComputePolymorphicIC(TypeHandleList* types, | 126 Handle<Code> ComputePolymorphicIC(Code::Kind kind, |
| 127 TypeHandleList* types, |
126 CodeHandleList* handlers, | 128 CodeHandleList* handlers, |
127 int number_of_valid_maps, | 129 int number_of_valid_maps, |
128 Handle<Name> name, | 130 Handle<Name> name, |
129 ExtraICState extra_ic_state); | 131 ExtraICState extra_ic_state); |
130 | 132 |
131 // Finds the Code object stored in the Heap::non_monomorphic_cache(). | 133 // Finds the Code object stored in the Heap::non_monomorphic_cache(). |
132 Code* FindPreMonomorphicIC(Code::Kind kind, ExtraICState extra_ic_state); | 134 Code* FindPreMonomorphicIC(Code::Kind kind, ExtraICState extra_ic_state); |
133 | 135 |
134 // Update cache for entry hash(name, map). | 136 // Update cache for entry hash(name, map). |
135 Code* Set(Name* name, Map* map, Code* code); | 137 Code* Set(Name* name, Map* map, Code* code); |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 Handle<JSFunction> constant_function_; | 846 Handle<JSFunction> constant_function_; |
845 bool is_simple_api_call_; | 847 bool is_simple_api_call_; |
846 Handle<FunctionTemplateInfo> expected_receiver_type_; | 848 Handle<FunctionTemplateInfo> expected_receiver_type_; |
847 Handle<CallHandlerInfo> api_call_info_; | 849 Handle<CallHandlerInfo> api_call_info_; |
848 }; | 850 }; |
849 | 851 |
850 | 852 |
851 } } // namespace v8::internal | 853 } } // namespace v8::internal |
852 | 854 |
853 #endif // V8_STUB_CACHE_H_ | 855 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |