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

Unified Diff: src/factory.h

Issue 263083008: Pass in the map while creating JSFunction, and set prototype in the client. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 7 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/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 a525fd1e4b56853a9dcf25605a2383e68e8dad94..91a036cca79583e13752764fe964fbba3101a0aa 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -676,13 +676,12 @@ class Factory V8_FINAL {
// type JS_FUNCTION_TYPE benefit from the use of this function.
inline void InitializeFunction(Handle<JSFunction> function,
Handle<SharedFunctionInfo> info,
- Handle<Context> context,
- MaybeHandle<Object> maybe_prototype);
+ Handle<Context> context);
// Creates a function initialized with a shared part.
- inline Handle<JSFunction> NewFunction(Handle<SharedFunctionInfo> info,
+ inline Handle<JSFunction> NewFunction(Handle<Map> map,
+ Handle<SharedFunctionInfo> info,
Handle<Context> context,
- MaybeHandle<Object> maybe_prototype,
PretenureFlag pretenure = TENURED);
// Create a new map cache.
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698