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

Unified Diff: src/factory.h

Issue 1027283004: [es6] do not add caller/arguments to ES6 function definitions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: diff cleanup Created 5 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/factory.h
diff --git a/src/factory.h b/src/factory.h
index ba6800b04d496e437429f744addbc0c340aa5669..a9fd3544f85515ed2db833ed5ba826c32f175cc9 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -471,13 +471,14 @@ class Factory FINAL {
void BecomeJSObject(Handle<JSProxy> object);
void BecomeJSFunction(Handle<JSProxy> object);
- Handle<JSFunction> NewFunction(Handle<String> name,
- Handle<Code> code,
+ Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code,
Handle<Object> prototype,
- bool read_only_prototype = false);
+ bool read_only_prototype = false,
+ bool use_empty_function_map = false);
Handle<JSFunction> NewFunction(Handle<String> name);
- Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
- Handle<Code> code);
+ Handle<JSFunction> NewFunctionWithoutPrototype(
+ Handle<String> name, Handle<Code> code,
+ bool use_empty_function_map = false);
Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
Handle<SharedFunctionInfo> function_info,
@@ -488,7 +489,8 @@ class Factory FINAL {
Handle<Object> prototype, InstanceType type,
int instance_size,
bool read_only_prototype = false,
- bool install_constructor = false);
+ bool install_constructor = false,
+ bool use_empty_function_map = false);
Handle<JSFunction> NewFunction(Handle<String> name,
Handle<Code> code,
InstanceType type,

Powered by Google App Engine
This is Rietveld 408576698