| 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 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 { | 1862 { |
| 1863 Handle<JSFunction> fun = SimpleCreateFunction( | 1863 Handle<JSFunction> fun = SimpleCreateFunction( |
| 1864 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), | 1864 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), |
| 1865 Builtins::kRegExpPrototypeReplace, 2, true); | 1865 Builtins::kRegExpPrototypeReplace, 2, true); |
| 1866 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); | 1866 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); |
| 1867 } | 1867 } |
| 1868 | 1868 |
| 1869 { | 1869 { |
| 1870 Handle<JSFunction> fun = SimpleCreateFunction( | 1870 Handle<JSFunction> fun = SimpleCreateFunction( |
| 1871 isolate, factory->InternalizeUtf8String("[Symbol.search]"), | 1871 isolate, factory->InternalizeUtf8String("[Symbol.search]"), |
| 1872 Builtins::kRegExpPrototypeSearch, 1, false); | 1872 Builtins::kRegExpPrototypeSearch, 1, true); |
| 1873 InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); | 1873 InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); |
| 1874 } | 1874 } |
| 1875 | 1875 |
| 1876 { | 1876 { |
| 1877 Handle<JSFunction> fun = SimpleCreateFunction( | 1877 Handle<JSFunction> fun = SimpleCreateFunction( |
| 1878 isolate, factory->InternalizeUtf8String("[Symbol.split]"), | 1878 isolate, factory->InternalizeUtf8String("[Symbol.split]"), |
| 1879 Builtins::kRegExpPrototypeSplit, 2, false); | 1879 Builtins::kRegExpPrototypeSplit, 2, false); |
| 1880 InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); | 1880 InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); |
| 1881 } | 1881 } |
| 1882 | 1882 |
| (...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4565 } | 4565 } |
| 4566 | 4566 |
| 4567 | 4567 |
| 4568 // Called when the top-level V8 mutex is destroyed. | 4568 // Called when the top-level V8 mutex is destroyed. |
| 4569 void Bootstrapper::FreeThreadResources() { | 4569 void Bootstrapper::FreeThreadResources() { |
| 4570 DCHECK(!IsActive()); | 4570 DCHECK(!IsActive()); |
| 4571 } | 4571 } |
| 4572 | 4572 |
| 4573 } // namespace internal | 4573 } // namespace internal |
| 4574 } // namespace v8 | 4574 } // namespace v8 |
| OLD | NEW |