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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Update cache for entry hash(name, map). | 254 // Update cache for entry hash(name, map). |
255 Code* Set(String* name, Map* map, Code* code); | 255 Code* Set(String* name, Map* map, Code* code); |
256 | 256 |
257 // Clear the lookup table (@ mark compact collection). | 257 // Clear the lookup table (@ mark compact collection). |
258 void Clear(); | 258 void Clear(); |
259 | 259 |
260 // Collect all maps that match the name and flags. | 260 // Collect all maps that match the name and flags. |
261 void CollectMatchingMaps(SmallMapList* types, | 261 void CollectMatchingMaps(SmallMapList* types, |
262 String* name, | 262 String* name, |
263 Code::Flags flags, | 263 Code::Flags flags, |
264 Handle<Context> native_context, | 264 Handle<Context> global_context, |
265 Zone* zone); | 265 Zone* zone); |
266 | 266 |
267 // Generate code for probing the stub cache table. | 267 // Generate code for probing the stub cache table. |
268 // Arguments extra, extra2 and extra3 may be used to pass additional scratch | 268 // Arguments extra, extra2 and extra3 may be used to pass additional scratch |
269 // registers. Set to no_reg if not needed. | 269 // registers. Set to no_reg if not needed. |
270 void GenerateProbe(MacroAssembler* masm, | 270 void GenerateProbe(MacroAssembler* masm, |
271 Code::Flags flags, | 271 Code::Flags flags, |
272 Register receiver, | 272 Register receiver, |
273 Register name, | 273 Register name, |
274 Register scratch, | 274 Register scratch, |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 | 701 |
702 Handle<Code> CompileStoreField(Handle<JSObject> object, | 702 Handle<Code> CompileStoreField(Handle<JSObject> object, |
703 int index, | 703 int index, |
704 Handle<Map> transition, | 704 Handle<Map> transition, |
705 Handle<String> name); | 705 Handle<String> name); |
706 | 706 |
707 Handle<Code> CompileStoreCallback(Handle<JSObject> object, | 707 Handle<Code> CompileStoreCallback(Handle<JSObject> object, |
708 Handle<AccessorInfo> callback, | 708 Handle<AccessorInfo> callback, |
709 Handle<String> name); | 709 Handle<String> name); |
710 | 710 |
711 static void GenerateStoreViaSetter(MacroAssembler* masm, | |
712 Handle<JSFunction> setter); | |
713 | |
714 Handle<Code> CompileStoreViaSetter(Handle<String> name, | 711 Handle<Code> CompileStoreViaSetter(Handle<String> name, |
715 Handle<JSObject> receiver, | 712 Handle<JSObject> receiver, |
716 Handle<JSObject> holder, | 713 Handle<JSObject> holder, |
717 Handle<JSFunction> setter); | 714 Handle<JSFunction> setter); |
718 | 715 |
719 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, | 716 Handle<Code> CompileStoreInterceptor(Handle<JSObject> object, |
720 Handle<String> name); | 717 Handle<String> name); |
721 | 718 |
722 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object, | 719 Handle<Code> CompileStoreGlobal(Handle<GlobalObject> object, |
723 Handle<JSGlobalPropertyCell> holder, | 720 Handle<JSGlobalPropertyCell> holder, |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 Handle<JSFunction> constant_function_; | 926 Handle<JSFunction> constant_function_; |
930 bool is_simple_api_call_; | 927 bool is_simple_api_call_; |
931 Handle<FunctionTemplateInfo> expected_receiver_type_; | 928 Handle<FunctionTemplateInfo> expected_receiver_type_; |
932 Handle<CallHandlerInfo> api_call_info_; | 929 Handle<CallHandlerInfo> api_call_info_; |
933 }; | 930 }; |
934 | 931 |
935 | 932 |
936 } } // namespace v8::internal | 933 } } // namespace v8::internal |
937 | 934 |
938 #endif // V8_STUB_CACHE_H_ | 935 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |