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

Unified Diff: src/js/v8natives.js

Issue 2934893002: [builtins] Properly optimize Object.prototype.isPrototypeOf. (Closed)
Patch Set: Address feedback. Created 3 years, 6 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 | « src/debug/debug-evaluate.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index 5ae75bae22e40118e82400c8ac107f36cc5356df..bac031fc57f910a454548d2bad9d619af0644bca 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -21,15 +21,6 @@ function ObjectToLocaleString() {
return this.toString();
}
-
-// ES6 19.1.3.3 Object.prototype.isPrototypeOf(V)
-function ObjectIsPrototypeOf(V) {
- if (!IS_RECEIVER(V)) return false;
- var O = TO_OBJECT(this);
- return %HasInPrototypeChain(V, O);
-}
-
-
// ES6 7.3.9
function GetMethod(obj, p) {
var func = obj[p];
@@ -62,7 +53,7 @@ utils.InstallFunctions(GlobalObject.prototype, DONT_ENUM, [
// toString is added in bootstrapper.cc
"toLocaleString", ObjectToLocaleString,
// valueOf is added in bootstrapper.cc.
- "isPrototypeOf", ObjectIsPrototypeOf,
+ // isPrototypeOf is added in bootstrapper.cc.
// propertyIsEnumerable is added in bootstrapper.cc.
// __defineGetter__ is added in bootstrapper.cc.
// __lookupGetter__ is added in bootstrapper.cc.
« no previous file with comments | « src/debug/debug-evaluate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698