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

Side by Side Diff: src/bootstrapper.cc

Issue 2537973004: [regexp] Move source and species getter to TF (Closed)
Patch Set: Address comments Created 4 years 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') | no next file with comments »
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 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 1832
1833 SimpleInstallGetter(prototype, factory->flags_string(), 1833 SimpleInstallGetter(prototype, factory->flags_string(),
1834 Builtins::kRegExpPrototypeFlagsGetter, true); 1834 Builtins::kRegExpPrototypeFlagsGetter, true);
1835 SimpleInstallGetter(prototype, factory->global_string(), 1835 SimpleInstallGetter(prototype, factory->global_string(),
1836 Builtins::kRegExpPrototypeGlobalGetter, true); 1836 Builtins::kRegExpPrototypeGlobalGetter, true);
1837 SimpleInstallGetter(prototype, factory->ignoreCase_string(), 1837 SimpleInstallGetter(prototype, factory->ignoreCase_string(),
1838 Builtins::kRegExpPrototypeIgnoreCaseGetter, true); 1838 Builtins::kRegExpPrototypeIgnoreCaseGetter, true);
1839 SimpleInstallGetter(prototype, factory->multiline_string(), 1839 SimpleInstallGetter(prototype, factory->multiline_string(),
1840 Builtins::kRegExpPrototypeMultilineGetter, true); 1840 Builtins::kRegExpPrototypeMultilineGetter, true);
1841 SimpleInstallGetter(prototype, factory->source_string(), 1841 SimpleInstallGetter(prototype, factory->source_string(),
1842 Builtins::kRegExpPrototypeSourceGetter, false); 1842 Builtins::kRegExpPrototypeSourceGetter, true);
1843 SimpleInstallGetter(prototype, factory->sticky_string(), 1843 SimpleInstallGetter(prototype, factory->sticky_string(),
1844 Builtins::kRegExpPrototypeStickyGetter, true); 1844 Builtins::kRegExpPrototypeStickyGetter, true);
1845 SimpleInstallGetter(prototype, factory->unicode_string(), 1845 SimpleInstallGetter(prototype, factory->unicode_string(),
1846 Builtins::kRegExpPrototypeUnicodeGetter, true); 1846 Builtins::kRegExpPrototypeUnicodeGetter, true);
1847 1847
1848 SimpleInstallFunction(prototype, "compile", 1848 SimpleInstallFunction(prototype, "compile",
1849 Builtins::kRegExpPrototypeCompile, 2, false, 1849 Builtins::kRegExpPrototypeCompile, 2, false,
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,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1889 // checks. Do not alter the prototype after this point. 1889 // checks. Do not alter the prototype after this point.
1890 native_context()->set_regexp_prototype_map(*prototype_map); 1890 native_context()->set_regexp_prototype_map(*prototype_map);
1891 } 1891 }
1892 1892
1893 { 1893 {
1894 // RegExp getters and setters. 1894 // RegExp getters and setters.
1895 1895
1896 SimpleInstallGetter(regexp_fun, 1896 SimpleInstallGetter(regexp_fun,
1897 factory->InternalizeUtf8String("[Symbol.species]"), 1897 factory->InternalizeUtf8String("[Symbol.species]"),
1898 factory->species_symbol(), 1898 factory->species_symbol(),
1899 Builtins::kRegExpPrototypeSpeciesGetter, false); 1899 Builtins::kRegExpPrototypeSpeciesGetter, true);
1900 1900
1901 // Static properties set by a successful match. 1901 // Static properties set by a successful match.
1902 1902
1903 const PropertyAttributes no_enum = DONT_ENUM; 1903 const PropertyAttributes no_enum = DONT_ENUM;
1904 SimpleInstallGetterSetter(regexp_fun, factory->input_string(), 1904 SimpleInstallGetterSetter(regexp_fun, factory->input_string(),
1905 Builtins::kRegExpInputGetter, 1905 Builtins::kRegExpInputGetter,
1906 Builtins::kRegExpInputSetter, no_enum); 1906 Builtins::kRegExpInputSetter, no_enum);
1907 SimpleInstallGetterSetter( 1907 SimpleInstallGetterSetter(
1908 regexp_fun, factory->InternalizeUtf8String("$_"), 1908 regexp_fun, factory->InternalizeUtf8String("$_"),
1909 Builtins::kRegExpInputGetter, Builtins::kRegExpInputSetter, no_enum); 1909 Builtins::kRegExpInputGetter, Builtins::kRegExpInputSetter, no_enum);
(...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
4561 } 4561 }
4562 4562
4563 4563
4564 // Called when the top-level V8 mutex is destroyed. 4564 // Called when the top-level V8 mutex is destroyed.
4565 void Bootstrapper::FreeThreadResources() { 4565 void Bootstrapper::FreeThreadResources() {
4566 DCHECK(!IsActive()); 4566 DCHECK(!IsActive());
4567 } 4567 }
4568 4568
4569 } // namespace internal 4569 } // namespace internal
4570 } // namespace v8 4570 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698