| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 class FunctionEntry BASE_EMBEDDED { | 70 class FunctionEntry BASE_EMBEDDED { |
| 71 public: | 71 public: |
| 72 explicit FunctionEntry(Vector<unsigned> backing) : backing_(backing) { } | 72 explicit FunctionEntry(Vector<unsigned> backing) : backing_(backing) { } |
| 73 FunctionEntry() : backing_(Vector<unsigned>::empty()) { } | 73 FunctionEntry() : backing_(Vector<unsigned>::empty()) { } |
| 74 | 74 |
| 75 int start_pos() { return backing_[kStartPosOffset]; } | 75 int start_pos() { return backing_[kStartPosOffset]; } |
| 76 int end_pos() { return backing_[kEndPosOffset]; } | 76 int end_pos() { return backing_[kEndPosOffset]; } |
| 77 int literal_count() { return backing_[kLiteralCountOffset]; } | 77 int literal_count() { return backing_[kLiteralCountOffset]; } |
| 78 int property_count() { return backing_[kPropertyCountOffset]; } | 78 int property_count() { return backing_[kPropertyCountOffset]; } |
| 79 StrictModeFlag strict_mode_flag() { | 79 StrictModeFlag strict_mode_flag() { |
| 80 ASSERT(backing_[kStrictModeOffset] == kStrictMode || |
| 81 backing_[kStrictModeOffset] == kNonStrictMode); |
| 80 return static_cast<StrictModeFlag>(backing_[kStrictModeOffset]); | 82 return static_cast<StrictModeFlag>(backing_[kStrictModeOffset]); |
| 81 } | 83 } |
| 82 | 84 |
| 83 bool is_valid() { return backing_.length() > 0; } | 85 bool is_valid() { return backing_.length() > 0; } |
| 84 | 86 |
| 85 static const int kSize = 5; | 87 static const int kSize = 5; |
| 86 | 88 |
| 87 private: | 89 private: |
| 88 Vector<unsigned> backing_; | 90 Vector<unsigned> backing_; |
| 89 static const int kStartPosOffset = 0; | 91 static const int kStartPosOffset = 0; |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 private: | 778 private: |
| 777 static const int kTypeSlot = 0; | 779 static const int kTypeSlot = 0; |
| 778 static const int kElementsSlot = 1; | 780 static const int kElementsSlot = 1; |
| 779 | 781 |
| 780 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 782 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 781 }; | 783 }; |
| 782 | 784 |
| 783 } } // namespace v8::internal | 785 } } // namespace v8::internal |
| 784 | 786 |
| 785 #endif // V8_PARSER_H_ | 787 #endif // V8_PARSER_H_ |
| OLD | NEW |