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 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1856 { | 1856 { |
1857 Handle<JSFunction> fun = SimpleCreateFunction( | 1857 Handle<JSFunction> fun = SimpleCreateFunction( |
1858 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), | 1858 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), |
1859 Builtins::kRegExpPrototypeReplace, 2, true); | 1859 Builtins::kRegExpPrototypeReplace, 2, true); |
1860 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); | 1860 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); |
1861 } | 1861 } |
1862 | 1862 |
1863 { | 1863 { |
1864 Handle<JSFunction> fun = SimpleCreateFunction( | 1864 Handle<JSFunction> fun = SimpleCreateFunction( |
1865 isolate, factory->InternalizeUtf8String("[Symbol.search]"), | 1865 isolate, factory->InternalizeUtf8String("[Symbol.search]"), |
1866 Builtins::kRegExpPrototypeSearch, 1, false); | 1866 Builtins::kRegExpPrototypeSearch, 1, true); |
1867 InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); | 1867 InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); |
1868 } | 1868 } |
1869 | 1869 |
1870 { | 1870 { |
1871 Handle<JSFunction> fun = SimpleCreateFunction( | 1871 Handle<JSFunction> fun = SimpleCreateFunction( |
1872 isolate, factory->InternalizeUtf8String("[Symbol.split]"), | 1872 isolate, factory->InternalizeUtf8String("[Symbol.split]"), |
1873 Builtins::kRegExpPrototypeSplit, 2, false); | 1873 Builtins::kRegExpPrototypeSplit, 2, false); |
1874 InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); | 1874 InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); |
1875 } | 1875 } |
1876 | 1876 |
(...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4552 } | 4552 } |
4553 | 4553 |
4554 | 4554 |
4555 // Called when the top-level V8 mutex is destroyed. | 4555 // Called when the top-level V8 mutex is destroyed. |
4556 void Bootstrapper::FreeThreadResources() { | 4556 void Bootstrapper::FreeThreadResources() { |
4557 DCHECK(!IsActive()); | 4557 DCHECK(!IsActive()); |
4558 } | 4558 } |
4559 | 4559 |
4560 } // namespace internal | 4560 } // namespace internal |
4561 } // namespace v8 | 4561 } // namespace v8 |
OLD | NEW |