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

Unified Diff: src/objects.h

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Extra parens in parameter lists now recognized, no longer segfaults on "()" 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 | « src/messages.js ('k') | src/objects-inl.h » ('j') | src/parser.h » ('J')
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 8ef7f20231f5e5a0d77bae8321462db95affe69e..1f3791a098b48c09e2c8f74deb15ab9021a27ad1 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7117,6 +7117,9 @@ class SharedFunctionInfo: public HeapObject {
// Indicates that this function is a generator.
DECL_BOOLEAN_ACCESSORS(is_generator)
+ // Indicated that this function is an arrow function.
+ DECL_BOOLEAN_ACCESSORS(is_arrow)
+
// Indicates whether or not the code in the shared function support
// deoptimization.
inline bool has_deoptimization_support();
@@ -7322,6 +7325,7 @@ class SharedFunctionInfo: public HeapObject {
kDontCache,
kDontFlush,
kIsGenerator,
+ kIsArrow,
kCompilerHintsCount // Pseudo entry
};
« no previous file with comments | « src/messages.js ('k') | src/objects-inl.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698