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

Side by Side Diff: src/bootstrapper.cc

Issue 2295273003: [regexp] Port RegExpCompile and RegExpToString (Closed)
Patch Set: Split up patch Created 4 years, 3 months 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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 SimpleInstallGetter(proto, factory->ignoreCase_string(), 1629 SimpleInstallGetter(proto, factory->ignoreCase_string(),
1630 Builtins::kRegExpPrototypeIgnoreCaseGetter, false); 1630 Builtins::kRegExpPrototypeIgnoreCaseGetter, false);
1631 SimpleInstallGetter(proto, factory->multiline_string(), 1631 SimpleInstallGetter(proto, factory->multiline_string(),
1632 Builtins::kRegExpPrototypeMultilineGetter, false); 1632 Builtins::kRegExpPrototypeMultilineGetter, false);
1633 SimpleInstallGetter(proto, factory->source_string(), 1633 SimpleInstallGetter(proto, factory->source_string(),
1634 Builtins::kRegExpPrototypeSourceGetter, false); 1634 Builtins::kRegExpPrototypeSourceGetter, false);
1635 SimpleInstallGetter(proto, factory->sticky_string(), 1635 SimpleInstallGetter(proto, factory->sticky_string(),
1636 Builtins::kRegExpPrototypeStickyGetter, false); 1636 Builtins::kRegExpPrototypeStickyGetter, false);
1637 SimpleInstallGetter(proto, factory->unicode_string(), 1637 SimpleInstallGetter(proto, factory->unicode_string(),
1638 Builtins::kRegExpPrototypeUnicodeGetter, false); 1638 Builtins::kRegExpPrototypeUnicodeGetter, false);
1639
1640 SimpleInstallFunction(proto, "compile", Builtins::kRegExpPrototypeCompile,
1641 2, false, DONT_ENUM);
1642 SimpleInstallFunction(proto, factory->toString_string(),
1643 Builtins::kRegExpPrototypeToString, 0, false,
1644 DONT_ENUM);
1639 } 1645 }
1640 1646
1641 { 1647 {
1642 // RegExp getters and setters. 1648 // RegExp getters and setters.
1643 1649
1644 const PropertyAttributes no_enum_no_delete = 1650 const PropertyAttributes no_enum_no_delete =
1645 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); 1651 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE);
1646 1652
1647 SimpleInstallGetter(regexp_fun, 1653 SimpleInstallGetter(regexp_fun,
1648 factory->InternalizeUtf8String("[Symbol.species]"), 1654 factory->InternalizeUtf8String("[Symbol.species]"),
(...skipping 2575 matching lines...) Expand 10 before | Expand all | Expand 10 after
4224 } 4230 }
4225 4231
4226 4232
4227 // Called when the top-level V8 mutex is destroyed. 4233 // Called when the top-level V8 mutex is destroyed.
4228 void Bootstrapper::FreeThreadResources() { 4234 void Bootstrapper::FreeThreadResources() {
4229 DCHECK(!IsActive()); 4235 DCHECK(!IsActive());
4230 } 4236 }
4231 4237
4232 } // namespace internal 4238 } // namespace internal
4233 } // namespace v8 4239 } // 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