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

Side by Side Diff: src/bootstrapper.cc

Issue 2392463005: [regexp] Port RegExpCompile and RegExpToString (Closed)
Patch Set: Rebase Created 4 years, 2 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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 SimpleInstallGetter(prototype, factory->ignoreCase_string(), 1714 SimpleInstallGetter(prototype, factory->ignoreCase_string(),
1715 Builtins::kRegExpPrototypeIgnoreCaseGetter, true); 1715 Builtins::kRegExpPrototypeIgnoreCaseGetter, true);
1716 SimpleInstallGetter(prototype, factory->multiline_string(), 1716 SimpleInstallGetter(prototype, factory->multiline_string(),
1717 Builtins::kRegExpPrototypeMultilineGetter, true); 1717 Builtins::kRegExpPrototypeMultilineGetter, true);
1718 SimpleInstallGetter(prototype, factory->source_string(), 1718 SimpleInstallGetter(prototype, factory->source_string(),
1719 Builtins::kRegExpPrototypeSourceGetter, false); 1719 Builtins::kRegExpPrototypeSourceGetter, false);
1720 SimpleInstallGetter(prototype, factory->sticky_string(), 1720 SimpleInstallGetter(prototype, factory->sticky_string(),
1721 Builtins::kRegExpPrototypeStickyGetter, true); 1721 Builtins::kRegExpPrototypeStickyGetter, true);
1722 SimpleInstallGetter(prototype, factory->unicode_string(), 1722 SimpleInstallGetter(prototype, factory->unicode_string(),
1723 Builtins::kRegExpPrototypeUnicodeGetter, true); 1723 Builtins::kRegExpPrototypeUnicodeGetter, true);
1724
1725 SimpleInstallFunction(prototype, "compile",
1726 Builtins::kRegExpPrototypeCompile, 2, false,
1727 DONT_ENUM);
1728 SimpleInstallFunction(prototype, factory->toString_string(),
1729 Builtins::kRegExpPrototypeToString, 0, false,
1730 DONT_ENUM);
1724 } 1731 }
1725 1732
1726 { 1733 {
1727 // RegExp getters and setters. 1734 // RegExp getters and setters.
1728 1735
1729 // TODO(jgruber): This should really be DONT_ENUM | DONT_DELETE. 1736 // TODO(jgruber): This should really be DONT_ENUM | DONT_DELETE.
1730 // However, that currently breaks layout test expectations. Note that 1737 // However, that currently breaks layout test expectations. Note that
1731 // Firefox sets a couple of these as enumerable. 1738 // Firefox sets a couple of these as enumerable.
1732 // On the other hand, installing attributes as DONT_ENUM matches the draft 1739 // On the other hand, installing attributes as DONT_ENUM matches the draft
1733 // specification at 1740 // specification at
(...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after
4355 } 4362 }
4356 4363
4357 4364
4358 // Called when the top-level V8 mutex is destroyed. 4365 // Called when the top-level V8 mutex is destroyed.
4359 void Bootstrapper::FreeThreadResources() { 4366 void Bootstrapper::FreeThreadResources() {
4360 DCHECK(!IsActive()); 4367 DCHECK(!IsActive());
4361 } 4368 }
4362 4369
4363 } // namespace internal 4370 } // namespace internal
4364 } // namespace v8 4371 } // 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