| 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 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1885 { | 1885 { |
| 1886 Handle<JSFunction> array_function = | 1886 Handle<JSFunction> array_function = |
| 1887 InstallInternalArray(builtins, "InternalArray", FAST_HOLEY_ELEMENTS); | 1887 InstallInternalArray(builtins, "InternalArray", FAST_HOLEY_ELEMENTS); |
| 1888 native_context()->set_internal_array_function(*array_function); | 1888 native_context()->set_internal_array_function(*array_function); |
| 1889 } | 1889 } |
| 1890 | 1890 |
| 1891 { | 1891 { |
| 1892 InstallInternalArray(builtins, "InternalPackedArray", FAST_ELEMENTS); | 1892 InstallInternalArray(builtins, "InternalPackedArray", FAST_ELEMENTS); |
| 1893 } | 1893 } |
| 1894 | 1894 |
| 1895 { |
| 1896 InstallInternalArray(builtins, "InternalDoubleArray", FAST_DOUBLE_ELEMENTS); |
| 1897 } |
| 1898 |
| 1895 if (FLAG_disable_native_files) { | 1899 if (FLAG_disable_native_files) { |
| 1896 PrintF("Warning: Running without installed natives!\n"); | 1900 PrintF("Warning: Running without installed natives!\n"); |
| 1897 return true; | 1901 return true; |
| 1898 } | 1902 } |
| 1899 | 1903 |
| 1900 // Install natives. | 1904 // Install natives. |
| 1901 for (int i = Natives::GetDebuggerCount(); | 1905 for (int i = Natives::GetDebuggerCount(); |
| 1902 i < Natives::GetBuiltinsCount(); | 1906 i < Natives::GetBuiltinsCount(); |
| 1903 i++) { | 1907 i++) { |
| 1904 if (!CompileBuiltin(isolate(), i)) return false; | 1908 if (!CompileBuiltin(isolate(), i)) return false; |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2669 return from + sizeof(NestingCounterType); | 2673 return from + sizeof(NestingCounterType); |
| 2670 } | 2674 } |
| 2671 | 2675 |
| 2672 | 2676 |
| 2673 // Called when the top-level V8 mutex is destroyed. | 2677 // Called when the top-level V8 mutex is destroyed. |
| 2674 void Bootstrapper::FreeThreadResources() { | 2678 void Bootstrapper::FreeThreadResources() { |
| 2675 ASSERT(!IsActive()); | 2679 ASSERT(!IsActive()); |
| 2676 } | 2680 } |
| 2677 | 2681 |
| 2678 } } // namespace v8::internal | 2682 } } // namespace v8::internal |
| OLD | NEW |