| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 ; | 1382 ; |
| 1383 | 1383 |
| 1384 Handle<FixedArray> caches = Factory::NewFixedArray(kNumberOfCaches, TENURED); | 1384 Handle<FixedArray> caches = Factory::NewFixedArray(kNumberOfCaches, TENURED); |
| 1385 | 1385 |
| 1386 int index = 0; | 1386 int index = 0; |
| 1387 #define F(size, func) caches->set(index++, CreateCache(size, func)); | 1387 #define F(size, func) caches->set(index++, CreateCache(size, func)); |
| 1388 JSFUNCTION_RESULT_CACHE_LIST(F) | 1388 JSFUNCTION_RESULT_CACHE_LIST(F) |
| 1389 #undef F | 1389 #undef F |
| 1390 | 1390 |
| 1391 global_context()->set_jsfunction_result_caches(*caches); | 1391 global_context()->set_jsfunction_result_caches(*caches); |
| 1392 |
| 1393 Handle<FixedArray> slow_map_cache = Factory::NewFixedArray(0x100, TENURED); |
| 1394 global_context()->set_slow_map_cache(*slow_map_cache); |
| 1392 } | 1395 } |
| 1393 | 1396 |
| 1394 | 1397 |
| 1395 int BootstrapperActive::nesting_ = 0; | 1398 int BootstrapperActive::nesting_ = 0; |
| 1396 | 1399 |
| 1397 | 1400 |
| 1398 bool Bootstrapper::InstallExtensions(Handle<Context> global_context, | 1401 bool Bootstrapper::InstallExtensions(Handle<Context> global_context, |
| 1399 v8::ExtensionConfiguration* extensions) { | 1402 v8::ExtensionConfiguration* extensions) { |
| 1400 BootstrapperActive active; | 1403 BootstrapperActive active; |
| 1401 SaveContext saved_context; | 1404 SaveContext saved_context; |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 } | 1813 } |
| 1811 | 1814 |
| 1812 | 1815 |
| 1813 // Restore statics that are thread local. | 1816 // Restore statics that are thread local. |
| 1814 char* BootstrapperActive::RestoreState(char* from) { | 1817 char* BootstrapperActive::RestoreState(char* from) { |
| 1815 nesting_ = *reinterpret_cast<int*>(from); | 1818 nesting_ = *reinterpret_cast<int*>(from); |
| 1816 return from + sizeof(nesting_); | 1819 return from + sizeof(nesting_); |
| 1817 } | 1820 } |
| 1818 | 1821 |
| 1819 } } // namespace v8::internal | 1822 } } // namespace v8::internal |
| OLD | NEW |