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

Unified Diff: src/v8natives.js

Issue 7839028: Avoid size increase of snapshot. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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 | test/mjsunit/builtins.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 829d7192e587cba083280a64b546e58b10a36ea9..1616ac366b0e470a07de5884687b22fb9ee81016 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -97,13 +97,7 @@ function SetUpLockedPrototype(constructor, fields, methods) {
%SetNativeFlag(f);
}
prototype.__proto__ = null;
- %PreventExtensions(prototype);
%ToFastProperties(prototype);
-
- var desc = GetOwnProperty(constructor, "prototype");
- desc.setWritable(false);
- desc.setConfigurable(false);
- DefineOwnProperty(constructor, "prototype", desc, false);
}
« no previous file with comments | « no previous file | test/mjsunit/builtins.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698