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

Side by Side Diff: src/bootstrapper.cc

Issue 2663803002: [string] Migrate String.prototype.{split,replace} to TF (Closed)
Patch Set: Whitelist new builtins and fix fast-regexp check Created 3 years, 10 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
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 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 SimpleInstallFunction(prototype, "includes", 1579 SimpleInstallFunction(prototype, "includes",
1580 Builtins::kStringPrototypeIncludes, 1, false); 1580 Builtins::kStringPrototypeIncludes, 1, false);
1581 SimpleInstallFunction(prototype, "indexOf", 1581 SimpleInstallFunction(prototype, "indexOf",
1582 Builtins::kStringPrototypeIndexOf, 1, false); 1582 Builtins::kStringPrototypeIndexOf, 1, false);
1583 SimpleInstallFunction(prototype, "lastIndexOf", 1583 SimpleInstallFunction(prototype, "lastIndexOf",
1584 Builtins::kStringPrototypeLastIndexOf, 1, false); 1584 Builtins::kStringPrototypeLastIndexOf, 1, false);
1585 SimpleInstallFunction(prototype, "localeCompare", 1585 SimpleInstallFunction(prototype, "localeCompare",
1586 Builtins::kStringPrototypeLocaleCompare, 1, true); 1586 Builtins::kStringPrototypeLocaleCompare, 1, true);
1587 SimpleInstallFunction(prototype, "normalize", 1587 SimpleInstallFunction(prototype, "normalize",
1588 Builtins::kStringPrototypeNormalize, 0, false); 1588 Builtins::kStringPrototypeNormalize, 0, false);
1589 SimpleInstallFunction(prototype, "split", Builtins::kStringPrototypeSplit,
1590 2, true);
1591 SimpleInstallFunction(prototype, "replace",
1592 Builtins::kStringPrototypeReplace, 2, true);
1589 SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr, 1593 SimpleInstallFunction(prototype, "substr", Builtins::kStringPrototypeSubstr,
1590 2, true); 1594 2, true);
1591 SimpleInstallFunction(prototype, "substring", 1595 SimpleInstallFunction(prototype, "substring",
1592 Builtins::kStringPrototypeSubstring, 2, true); 1596 Builtins::kStringPrototypeSubstring, 2, true);
1593 SimpleInstallFunction(prototype, "startsWith", 1597 SimpleInstallFunction(prototype, "startsWith",
1594 Builtins::kStringPrototypeStartsWith, 1, false); 1598 Builtins::kStringPrototypeStartsWith, 1, false);
1595 SimpleInstallFunction(prototype, "toString", 1599 SimpleInstallFunction(prototype, "toString",
1596 Builtins::kStringPrototypeToString, 0, true); 1600 Builtins::kStringPrototypeToString, 0, true);
1597 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0, 1601 SimpleInstallFunction(prototype, "trim", Builtins::kStringPrototypeTrim, 0,
1598 false); 1602 false);
(...skipping 3225 matching lines...) Expand 10 before | Expand all | Expand 10 after
4824 } 4828 }
4825 4829
4826 4830
4827 // Called when the top-level V8 mutex is destroyed. 4831 // Called when the top-level V8 mutex is destroyed.
4828 void Bootstrapper::FreeThreadResources() { 4832 void Bootstrapper::FreeThreadResources() {
4829 DCHECK(!IsActive()); 4833 DCHECK(!IsActive());
4830 } 4834 }
4831 4835
4832 } // namespace internal 4836 } // namespace internal
4833 } // namespace v8 4837 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698