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

Unified Diff: src/bootstrapper.cc

Issue 6677036: Fast path for strict closure creation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 246428680ef8eee5676376b1d03c49127fb0a833..34df431372570abb4f0249b608544bae1adf412d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -564,11 +564,11 @@ void Genesis::CreateThrowTypeErrorCallbacks(
pill->shared()->set_code(*code);
pill->shared()->DontAdaptArguments();
+ PreventExtensions(pill);
+
Martin Maly 2011/03/15 03:08:57 For some reason this felt cleaner, to freeze first
Mads Ager (chromium) 2011/03/15 08:49:54 I agree. :)
// Install the poison pills into the calbacks array.
callbacks->set(0, *pill);
callbacks->set(1, *pill);
-
- PreventExtensions(pill);
}
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | src/contexts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698