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

Unified Diff: src/bootstrapper.cc

Issue 1877263002: 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 ba076a102d45d96069f7f3bfb72aa8d98c5910db..0428f92830298e777630aa7ff87ae79268f70249 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