Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index fe11bc9b5114c20eec6a54857ac382a29ad78b56..1697eb7b6c2c3585a9084cce6396d986e36b8ea9 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -72,22 +72,14 @@ class FunctionEntry BASE_EMBEDDED { |
FunctionEntry() : backing_(Vector<unsigned>::empty()) { } |
int start_pos() { return backing_[kStartPosOffset]; } |
- void set_start_pos(int value) { backing_[kStartPosOffset] = value; } |
- |
int end_pos() { return backing_[kEndPosOffset]; } |
- void set_end_pos(int value) { backing_[kEndPosOffset] = value; } |
- |
int literal_count() { return backing_[kLiteralCountOffset]; } |
- void set_literal_count(int value) { backing_[kLiteralCountOffset] = value; } |
- |
int property_count() { return backing_[kPropertyCountOffset]; } |
- void set_property_count(int value) { |
- backing_[kPropertyCountOffset] = value; |
- } |
+ bool strict_mode() { return backing_[kStrictModeOffset] != 0; } |
bool is_valid() { return backing_.length() > 0; } |
- static const int kSize = 4; |
+ static const int kSize = 5; |
private: |
Vector<unsigned> backing_; |
@@ -95,6 +87,7 @@ class FunctionEntry BASE_EMBEDDED { |
static const int kEndPosOffset = 1; |
static const int kLiteralCountOffset = 2; |
static const int kPropertyCountOffset = 3; |
+ static const int kStrictModeOffset = 4; |
}; |