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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 Handle<JSObject> receiver, | 155 Handle<JSObject> receiver, |
156 Handle<AccessorInfo> callback, | 156 Handle<AccessorInfo> callback, |
157 StrictModeFlag strict_mode); | 157 StrictModeFlag strict_mode); |
158 | 158 |
159 Handle<Code> ComputeStoreInterceptor(Handle<String> name, | 159 Handle<Code> ComputeStoreInterceptor(Handle<String> name, |
160 Handle<JSObject> receiver, | 160 Handle<JSObject> receiver, |
161 StrictModeFlag strict_mode); | 161 StrictModeFlag strict_mode); |
162 | 162 |
163 // --- | 163 // --- |
164 | 164 |
165 MUST_USE_RESULT MaybeObject* ComputeKeyedStoreField( | 165 Handle<Code> ComputeKeyedStoreField(Handle<String> name, |
166 String* name, | 166 Handle<JSObject> receiver, |
167 JSObject* receiver, | 167 int field_index, |
168 int field_index, | 168 Handle<Map> transition, |
169 Map* transition, | 169 StrictModeFlag strict_mode); |
170 StrictModeFlag strict_mode); | |
171 | 170 |
172 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadOrStoreElement( | 171 MUST_USE_RESULT MaybeObject* ComputeKeyedLoadOrStoreElement( |
173 JSObject* receiver, | 172 JSObject* receiver, |
174 KeyedIC::StubKind stub_kind, | 173 KeyedIC::StubKind stub_kind, |
175 StrictModeFlag strict_mode); | 174 StrictModeFlag strict_mode); |
176 | 175 |
177 // --- | 176 // --- |
178 | 177 |
179 MUST_USE_RESULT MaybeObject* ComputeCallField( | 178 MUST_USE_RESULT MaybeObject* ComputeCallField( |
180 int argc, | 179 int argc, |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 | 747 |
749 StrictModeFlag strict_mode_; | 748 StrictModeFlag strict_mode_; |
750 }; | 749 }; |
751 | 750 |
752 | 751 |
753 class KeyedStoreStubCompiler: public StubCompiler { | 752 class KeyedStoreStubCompiler: public StubCompiler { |
754 public: | 753 public: |
755 KeyedStoreStubCompiler(Isolate* isolate, StrictModeFlag strict_mode) | 754 KeyedStoreStubCompiler(Isolate* isolate, StrictModeFlag strict_mode) |
756 : StubCompiler(isolate), strict_mode_(strict_mode) { } | 755 : StubCompiler(isolate), strict_mode_(strict_mode) { } |
757 | 756 |
| 757 Handle<Code> CompileStoreField(Handle<JSObject> object, |
| 758 int index, |
| 759 Handle<Map> transition, |
| 760 Handle<String> name); |
| 761 |
758 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, | 762 MUST_USE_RESULT MaybeObject* CompileStoreField(JSObject* object, |
759 int index, | 763 int index, |
760 Map* transition, | 764 Map* transition, |
761 String* name); | 765 String* name); |
762 | 766 |
763 MUST_USE_RESULT MaybeObject* CompileStoreElement(Map* receiver_map); | 767 MUST_USE_RESULT MaybeObject* CompileStoreElement(Map* receiver_map); |
764 | 768 |
765 MUST_USE_RESULT MaybeObject* CompileStorePolymorphic( | 769 MUST_USE_RESULT MaybeObject* CompileStorePolymorphic( |
766 MapList* receiver_maps, | 770 MapList* receiver_maps, |
767 CodeList* handler_stubs, | 771 CodeList* handler_stubs, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 JSFunction* constant_function_; | 956 JSFunction* constant_function_; |
953 bool is_simple_api_call_; | 957 bool is_simple_api_call_; |
954 FunctionTemplateInfo* expected_receiver_type_; | 958 FunctionTemplateInfo* expected_receiver_type_; |
955 CallHandlerInfo* api_call_info_; | 959 CallHandlerInfo* api_call_info_; |
956 }; | 960 }; |
957 | 961 |
958 | 962 |
959 } } // namespace v8::internal | 963 } } // namespace v8::internal |
960 | 964 |
961 #endif // V8_STUB_CACHE_H_ | 965 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |