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

Side by Side Diff: src/parser.h

Issue 8407002: Version 3.7.2 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
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 bool strict_mode() { return backing_[kStrictModeOffset] != 0; } 79 StrictModeFlag strict_mode_flag() {
80 return static_cast<StrictModeFlag>(backing_[kStrictModeOffset]);
81 }
80 82
81 bool is_valid() { return backing_.length() > 0; } 83 bool is_valid() { return backing_.length() > 0; }
82 84
83 static const int kSize = 5; 85 static const int kSize = 5;
84 86
85 private: 87 private:
86 Vector<unsigned> backing_; 88 Vector<unsigned> backing_;
87 static const int kStartPosOffset = 0; 89 static const int kStartPosOffset = 0;
88 static const int kEndPosOffset = 1; 90 static const int kEndPosOffset = 1;
89 static const int kLiteralCountOffset = 2; 91 static const int kLiteralCountOffset = 2;
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 private: 776 private:
775 static const int kTypeSlot = 0; 777 static const int kTypeSlot = 0;
776 static const int kElementsSlot = 1; 778 static const int kElementsSlot = 1;
777 779
778 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 780 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
779 }; 781 };
780 782
781 } } // namespace v8::internal 783 } } // namespace v8::internal
782 784
783 #endif // V8_PARSER_H_ 785 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698