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

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: Rebase + test262 exceptions Created 5 years, 8 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 3966a63c1ba8496d5efa785a3861550d7d21a02a..b2581e38aec97aed5054959274842820dba8408c 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -482,13 +482,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 is_strict = false);
Handle<JSFunction> NewFunction(Handle<String> name);
Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
- Handle<Code> code);
+ Handle<Code> code,
+ bool is_strict = false);
Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
Handle<SharedFunctionInfo> function_info,
@@ -499,7 +500,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 is_strict = false);
Handle<JSFunction> NewFunction(Handle<String> name,
Handle<Code> code,
InstanceType type,

Powered by Google App Engine
This is Rietveld 408576698