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

Unified Diff: src/objects.h

Issue 1626423003: Support computed properties for ES2015 Function.name (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge to trunk, disable bytecode generator class test Created 4 years, 10 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/interpreter/bytecode-generator.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 9cd251b2858032c58a163ba774eb63d096d678f9..39e626b8d1dabaf714c216c1b0726ba2bd94f98b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7509,6 +7509,12 @@ class JSFunction: public JSObject {
// debug name.
static Handle<String> GetName(Handle<JSFunction> function);
+ // ES6 section 9.2.11 SetFunctionName
+ // Because of the way this abstract operation is used in the spec,
+ // it should never fail.
+ static void SetName(Handle<JSFunction> function, Handle<Name> name,
+ Handle<String> prefix);
+
// The function's displayName if it is set, otherwise name if it is
// configured, otherwise shared function info
// debug name.
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698