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

Unified Diff: src/factory.h

Issue 7275022: Explicitly pass the closure when allocating a catch or with context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/arm/full-codegen-arm.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index fa385e2e783a879cd54722196df5e8007ef4fbe5..19f09a15ce3ddae09ed05b06cf49a98b39f2f377 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -152,15 +152,17 @@ class Factory {
// Create a function context.
Handle<Context> NewFunctionContext(int length,
- Handle<JSFunction> closure);
+ Handle<JSFunction> function);
// Create a catch context.
- Handle<Context> NewCatchContext(Handle<Context> previous,
+ Handle<Context> NewCatchContext(Handle<JSFunction> function,
+ Handle<Context> previous,
Handle<String> name,
Handle<Object> thrown_object);
// Create a 'with' context.
- Handle<Context> NewWithContext(Handle<Context> previous,
+ Handle<Context> NewWithContext(Handle<JSFunction> function,
+ Handle<Context> previous,
Handle<JSObject> extension);
// Return the Symbol matching the passed in string.
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698