| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 // Generate code for probing the stub cache table. | 301 // Generate code for probing the stub cache table. |
| 302 // Arguments extra and extra2 may be used to pass additional scratch | 302 // Arguments extra and extra2 may be used to pass additional scratch |
| 303 // registers. Set to no_reg if not needed. | 303 // registers. Set to no_reg if not needed. |
| 304 void GenerateProbe(MacroAssembler* masm, | 304 void GenerateProbe(MacroAssembler* masm, |
| 305 Code::Flags flags, | 305 Code::Flags flags, |
| 306 Register receiver, | 306 Register receiver, |
| 307 Register name, | 307 Register name, |
| 308 Register scratch, | 308 Register scratch, |
| 309 Register extra, | 309 Register extra, |
| 310 Register extra2 = no_reg); | 310 Register extra2 = no_reg, |
| 311 Register extra3 = no_reg); |
| 311 | 312 |
| 312 enum Table { | 313 enum Table { |
| 313 kPrimary, | 314 kPrimary, |
| 314 kSecondary | 315 kSecondary |
| 315 }; | 316 }; |
| 316 | 317 |
| 317 | 318 |
| 318 SCTableReference key_reference(StubCache::Table table) { | 319 SCTableReference key_reference(StubCache::Table table) { |
| 319 return SCTableReference( | 320 return SCTableReference( |
| 320 reinterpret_cast<Address>(&first_entry(table)->key)); | 321 reinterpret_cast<Address>(&first_entry(table)->key)); |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 JSFunction* constant_function_; | 897 JSFunction* constant_function_; |
| 897 bool is_simple_api_call_; | 898 bool is_simple_api_call_; |
| 898 FunctionTemplateInfo* expected_receiver_type_; | 899 FunctionTemplateInfo* expected_receiver_type_; |
| 899 CallHandlerInfo* api_call_info_; | 900 CallHandlerInfo* api_call_info_; |
| 900 }; | 901 }; |
| 901 | 902 |
| 902 | 903 |
| 903 } } // namespace v8::internal | 904 } } // namespace v8::internal |
| 904 | 905 |
| 905 #endif // V8_STUB_CACHE_H_ | 906 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |