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

Unified Diff: src/ast.h

Issue 12114054: Supporting AllocationSiteInfo for Nested arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Now with ports to arm and x64 Created 7 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
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index a0a7a7320649fdff523c509f9f49e7760b4b3618..d3739b3a4f14e9571180ed70d3c114c27c34e862 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1322,7 +1322,8 @@ class ObjectLiteral: public MaterializedLiteral {
enum Flags {
kNoFlags = 0,
kFastElements = 1,
- kHasFunction = 1 << 1
+ kHasFunction = 1 << 1,
+ kAllocationSiteInfoAllowed = 1 << 2
};
struct Accessors: public ZoneObject {
@@ -1390,6 +1391,11 @@ class ArrayLiteral: public MaterializedLiteral {
return BailoutId(first_element_id_.ToInt() + i);
}
+ enum Flags {
+ kNoFlags = 0,
+ kAllocationSiteInfoAllowed = 1
+ };
+
protected:
ArrayLiteral(Isolate* isolate,
Handle<FixedArray> constant_elements,

Powered by Google App Engine
This is Rietveld 408576698