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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } | 360 } |
361 UNREACHABLE(); | 361 UNREACHABLE(); |
362 return NULL; | 362 return NULL; |
363 } | 363 } |
364 | 364 |
365 Isolate* isolate() { return isolate_; } | 365 Isolate* isolate() { return isolate_; } |
366 Heap* heap() { return isolate()->heap(); } | 366 Heap* heap() { return isolate()->heap(); } |
367 Factory* factory() { return isolate()->factory(); } | 367 Factory* factory() { return isolate()->factory(); } |
368 | 368 |
369 private: | 369 private: |
370 StubCache(Isolate* isolate, Zone* zone); | 370 explicit StubCache(Isolate* isolate); |
371 | 371 |
372 Handle<Code> ComputeCallInitialize(int argc, | 372 Handle<Code> ComputeCallInitialize(int argc, |
373 RelocInfo::Mode mode, | 373 RelocInfo::Mode mode, |
374 Code::Kind kind); | 374 Code::Kind kind); |
375 | 375 |
376 // The stub cache has a primary and secondary level. The two levels have | 376 // The stub cache has a primary and secondary level. The two levels have |
377 // different hashing algorithms in order to avoid simultaneous collisions | 377 // different hashing algorithms in order to avoid simultaneous collisions |
378 // in both caches. Unlike a probing strategy (quadratic or otherwise) the | 378 // in both caches. Unlike a probing strategy (quadratic or otherwise) the |
379 // update strategy on updates is fairly clear and simple: Any existing entry | 379 // update strategy on updates is fairly clear and simple: Any existing entry |
380 // in the primary cache is moved to the secondary cache, and secondary cache | 380 // in the primary cache is moved to the secondary cache, and secondary cache |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 Handle<JSFunction> constant_function_; | 1120 Handle<JSFunction> constant_function_; |
1121 bool is_simple_api_call_; | 1121 bool is_simple_api_call_; |
1122 Handle<FunctionTemplateInfo> expected_receiver_type_; | 1122 Handle<FunctionTemplateInfo> expected_receiver_type_; |
1123 Handle<CallHandlerInfo> api_call_info_; | 1123 Handle<CallHandlerInfo> api_call_info_; |
1124 }; | 1124 }; |
1125 | 1125 |
1126 | 1126 |
1127 } } // namespace v8::internal | 1127 } } // namespace v8::internal |
1128 | 1128 |
1129 #endif // V8_STUB_CACHE_H_ | 1129 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |