| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 // Update cache for entry hash(name, map). | 242 // Update cache for entry hash(name, map). |
| 243 Code* Set(String* name, Map* map, Code* code); | 243 Code* Set(String* name, Map* map, Code* code); |
| 244 | 244 |
| 245 // Clear the lookup table (@ mark compact collection). | 245 // Clear the lookup table (@ mark compact collection). |
| 246 void Clear(); | 246 void Clear(); |
| 247 | 247 |
| 248 // Collect all maps that match the name and flags. | 248 // Collect all maps that match the name and flags. |
| 249 void CollectMatchingMaps(SmallMapList* types, | 249 void CollectMatchingMaps(SmallMapList* types, |
| 250 String* name, | 250 String* name, |
| 251 Code::Flags flags); | 251 Code::Flags flags, |
| 252 Handle<Context> global_context); |
| 252 | 253 |
| 253 // Generate code for probing the stub cache table. | 254 // Generate code for probing the stub cache table. |
| 254 // Arguments extra and extra2 may be used to pass additional scratch | 255 // Arguments extra and extra2 may be used to pass additional scratch |
| 255 // registers. Set to no_reg if not needed. | 256 // registers. Set to no_reg if not needed. |
| 256 void GenerateProbe(MacroAssembler* masm, | 257 void GenerateProbe(MacroAssembler* masm, |
| 257 Code::Flags flags, | 258 Code::Flags flags, |
| 258 Register receiver, | 259 Register receiver, |
| 259 Register name, | 260 Register name, |
| 260 Register scratch, | 261 Register scratch, |
| 261 Register extra, | 262 Register extra, |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 Handle<JSFunction> constant_function_; | 858 Handle<JSFunction> constant_function_; |
| 858 bool is_simple_api_call_; | 859 bool is_simple_api_call_; |
| 859 Handle<FunctionTemplateInfo> expected_receiver_type_; | 860 Handle<FunctionTemplateInfo> expected_receiver_type_; |
| 860 Handle<CallHandlerInfo> api_call_info_; | 861 Handle<CallHandlerInfo> api_call_info_; |
| 861 }; | 862 }; |
| 862 | 863 |
| 863 | 864 |
| 864 } } // namespace v8::internal | 865 } } // namespace v8::internal |
| 865 | 866 |
| 866 #endif // V8_STUB_CACHE_H_ | 867 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |