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

Side by Side Diff: src/utils.h

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/unique.h ('k') | src/v8.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 int ToInt() const { return id_; } 1182 int ToInt() const { return id_; }
1183 1183
1184 static BailoutId None() { return BailoutId(kNoneId); } 1184 static BailoutId None() { return BailoutId(kNoneId); }
1185 static BailoutId FunctionEntry() { return BailoutId(kFunctionEntryId); } 1185 static BailoutId FunctionEntry() { return BailoutId(kFunctionEntryId); }
1186 static BailoutId Declarations() { return BailoutId(kDeclarationsId); } 1186 static BailoutId Declarations() { return BailoutId(kDeclarationsId); }
1187 static BailoutId FirstUsable() { return BailoutId(kFirstUsableId); } 1187 static BailoutId FirstUsable() { return BailoutId(kFirstUsableId); }
1188 static BailoutId StubEntry() { return BailoutId(kStubEntryId); } 1188 static BailoutId StubEntry() { return BailoutId(kStubEntryId); }
1189 1189
1190 bool IsNone() const { return id_ == kNoneId; } 1190 bool IsNone() const { return id_ == kNoneId; }
1191 bool operator==(const BailoutId& other) const { return id_ == other.id_; } 1191 bool operator==(const BailoutId& other) const { return id_ == other.id_; }
1192 bool operator!=(const BailoutId& other) const { return id_ != other.id_; }
1192 1193
1193 private: 1194 private:
1194 static const int kNoneId = -1; 1195 static const int kNoneId = -1;
1195 1196
1196 // Using 0 could disguise errors. 1197 // Using 0 could disguise errors.
1197 static const int kFunctionEntryId = 2; 1198 static const int kFunctionEntryId = 2;
1198 1199
1199 // This AST id identifies the point after the declarations have been visited. 1200 // This AST id identifies the point after the declarations have been visited.
1200 // We need it to capture the environment effects of declarations that emit 1201 // We need it to capture the environment effects of declarations that emit
1201 // code (function declarations). 1202 // code (function declarations).
1202 static const int kDeclarationsId = 3; 1203 static const int kDeclarationsId = 3;
1203 1204
1204 // Every FunctionState starts with this id. 1205 // Every FunctionState starts with this id.
1205 static const int kFirstUsableId = 4; 1206 static const int kFirstUsableId = 4;
1206 1207
1207 // Every compiled stub starts with this id. 1208 // Every compiled stub starts with this id.
1208 static const int kStubEntryId = 5; 1209 static const int kStubEntryId = 5;
1209 1210
1210 int id_; 1211 int id_;
1211 }; 1212 };
1212 1213
1213 } } // namespace v8::internal 1214 } } // namespace v8::internal
1214 1215
1215 #endif // V8_UTILS_H_ 1216 #endif // V8_UTILS_H_
OLDNEW
« no previous file with comments | « src/unique.h ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698