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

Unified Diff: src/bootstrapper.cc

Issue 1870993002: Revert of [builtins] Migrate String.prototype.charCodeAt and String.prototype.charAt to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 9cc361cae420c388138734918899382006da977f..0d1c070e47e36418ee566dd637d97f72a2fcd8ec 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1255,22 +1255,6 @@
attribs);
string_map->AppendDescriptor(&d);
}
-
- // Create the %StringPrototype%
- Handle<JSValue> prototype =
- Handle<JSValue>::cast(factory->NewJSObject(string_fun, TENURED));
- prototype->set_value(isolate->heap()->empty_string());
- Accessors::FunctionSetPrototype(string_fun, prototype).Assert();
-
- // Install the "constructor" property on the {prototype}.
- JSObject::AddProperty(prototype, factory->constructor_string(), string_fun,
- DONT_ENUM);
-
- // Install the String.prototype methods.
- SimpleInstallFunction(prototype, "charAt", Builtins::kStringPrototypeCharAt,
- 1, true);
- SimpleInstallFunction(prototype, "charCodeAt",
- Builtins::kStringPrototypeCharCodeAt, 1, true);
}
{
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698