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

Unified Diff: src/ast/compile-time-value.h

Issue 2445333002: Ensure slow properties for simple {__proto__:null} literals. (Closed)
Patch Set: minor cleanup Created 3 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
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/compile-time-value.cc » ('j') | src/factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/compile-time-value.h
diff --git a/src/ast/compile-time-value.h b/src/ast/compile-time-value.h
index d61443e5835e2708a9a82bfb88bdc3489ba21694..2c6a75296d67dd36845b3945ba1d741fad0f0d13 100644
--- a/src/ast/compile-time-value.h
+++ b/src/ast/compile-time-value.h
@@ -17,11 +17,7 @@ class Expression;
// can be fully handled at compile time.
class CompileTimeValue : public AllStatic {
public:
- enum LiteralType {
- OBJECT_LITERAL_FAST_ELEMENTS,
- OBJECT_LITERAL_SLOW_ELEMENTS,
- ARRAY_LITERAL
- };
+ static const int kArrayLiteralFlag = -1;
adamk 2017/04/26 18:48:15 This could use a comment, and see below.
Camillo Bruni 2017/04/27 09:39:41 Added comment + DCHECK to better explain the purpo
static bool IsCompileTimeValue(Expression* expression);
@@ -29,7 +25,7 @@ class CompileTimeValue : public AllStatic {
static Handle<FixedArray> GetValue(Isolate* isolate, Expression* expression);
// Get the type of a compile time value returned by GetValue().
adamk 2017/04/26 18:48:14 Please update this comment to explain what this th
Camillo Bruni 2017/04/27 09:39:41 updated with explanation of where the values come
- static LiteralType GetLiteralType(Handle<FixedArray> value);
+ static int GetLiteralTypeFlags(Handle<FixedArray> value);
// Get the elements of a compile time value returned by GetValue().
static Handle<HeapObject> GetElements(Handle<FixedArray> value);
« no previous file with comments | « src/ast/ast.cc ('k') | src/ast/compile-time-value.cc » ('j') | src/factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698