| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
| 9 #include "src/base/ieee754.h" | 9 #include "src/base/ieee754.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 DONT_ENUM); | 1850 DONT_ENUM); |
| 1851 SimpleInstallFunction(prototype, factory->toString_string(), | 1851 SimpleInstallFunction(prototype, factory->toString_string(), |
| 1852 Builtins::kRegExpPrototypeToString, 0, false, | 1852 Builtins::kRegExpPrototypeToString, 0, false, |
| 1853 DONT_ENUM); | 1853 DONT_ENUM); |
| 1854 SimpleInstallFunction(prototype, "test", Builtins::kRegExpPrototypeTest, | 1854 SimpleInstallFunction(prototype, "test", Builtins::kRegExpPrototypeTest, |
| 1855 1, true, DONT_ENUM); | 1855 1, true, DONT_ENUM); |
| 1856 | 1856 |
| 1857 { | 1857 { |
| 1858 Handle<JSFunction> fun = SimpleCreateFunction( | 1858 Handle<JSFunction> fun = SimpleCreateFunction( |
| 1859 isolate, factory->InternalizeUtf8String("[Symbol.match]"), | 1859 isolate, factory->InternalizeUtf8String("[Symbol.match]"), |
| 1860 Builtins::kRegExpPrototypeMatch, 1, false); | 1860 Builtins::kRegExpPrototypeMatch, 1, true); |
| 1861 InstallFunction(prototype, fun, factory->match_symbol(), DONT_ENUM); | 1861 InstallFunction(prototype, fun, factory->match_symbol(), DONT_ENUM); |
| 1862 } | 1862 } |
| 1863 | 1863 |
| 1864 { | 1864 { |
| 1865 Handle<JSFunction> fun = SimpleCreateFunction( | 1865 Handle<JSFunction> fun = SimpleCreateFunction( |
| 1866 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), | 1866 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), |
| 1867 Builtins::kRegExpPrototypeReplace, 2, true); | 1867 Builtins::kRegExpPrototypeReplace, 2, true); |
| 1868 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); | 1868 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); |
| 1869 } | 1869 } |
| 1870 | 1870 |
| (...skipping 2687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4558 } | 4558 } |
| 4559 | 4559 |
| 4560 | 4560 |
| 4561 // Called when the top-level V8 mutex is destroyed. | 4561 // Called when the top-level V8 mutex is destroyed. |
| 4562 void Bootstrapper::FreeThreadResources() { | 4562 void Bootstrapper::FreeThreadResources() { |
| 4563 DCHECK(!IsActive()); | 4563 DCHECK(!IsActive()); |
| 4564 } | 4564 } |
| 4565 | 4565 |
| 4566 } // namespace internal | 4566 } // namespace internal |
| 4567 } // namespace v8 | 4567 } // namespace v8 |
| OLD | NEW |