Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: src/bootstrapper.cc

Issue 2438683005: [regexp] Move RegExp.prototype[@@search] to TF (Closed)
Patch Set: Fix typo in lastindex restoration Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/builtins/builtins-regexp.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 { 1848 {
1849 Handle<JSFunction> fun = SimpleCreateFunction( 1849 Handle<JSFunction> fun = SimpleCreateFunction(
1850 isolate, factory->InternalizeUtf8String("[Symbol.replace]"), 1850 isolate, factory->InternalizeUtf8String("[Symbol.replace]"),
1851 Builtins::kRegExpPrototypeReplace, 2, true); 1851 Builtins::kRegExpPrototypeReplace, 2, true);
1852 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); 1852 InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM);
1853 } 1853 }
1854 1854
1855 { 1855 {
1856 Handle<JSFunction> fun = SimpleCreateFunction( 1856 Handle<JSFunction> fun = SimpleCreateFunction(
1857 isolate, factory->InternalizeUtf8String("[Symbol.search]"), 1857 isolate, factory->InternalizeUtf8String("[Symbol.search]"),
1858 Builtins::kRegExpPrototypeSearch, 1, false); 1858 Builtins::kRegExpPrototypeSearch, 1, true);
1859 InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); 1859 InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM);
1860 } 1860 }
1861 1861
1862 { 1862 {
1863 Handle<JSFunction> fun = SimpleCreateFunction( 1863 Handle<JSFunction> fun = SimpleCreateFunction(
1864 isolate, factory->InternalizeUtf8String("[Symbol.split]"), 1864 isolate, factory->InternalizeUtf8String("[Symbol.split]"),
1865 Builtins::kRegExpPrototypeSplit, 2, false); 1865 Builtins::kRegExpPrototypeSplit, 2, false);
1866 InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); 1866 InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM);
1867 } 1867 }
1868 1868
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
4572 } 4572 }
4573 4573
4574 4574
4575 // Called when the top-level V8 mutex is destroyed. 4575 // Called when the top-level V8 mutex is destroyed.
4576 void Bootstrapper::FreeThreadResources() { 4576 void Bootstrapper::FreeThreadResources() {
4577 DCHECK(!IsActive()); 4577 DCHECK(!IsActive());
4578 } 4578 }
4579 4579
4580 } // namespace internal 4580 } // namespace internal
4581 } // namespace v8 4581 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/builtins/builtins-regexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698