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

Side by Side Diff: src/utils.h

Issue 110203002: Refactor the compiling pipeline. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years 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/runtime-profiler.cc ('k') | src/x64/builtins-x64.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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 int ToInt() const { return id_; } 1111 int ToInt() const { return id_; }
1112 1112
1113 static BailoutId None() { return BailoutId(kNoneId); } 1113 static BailoutId None() { return BailoutId(kNoneId); }
1114 static BailoutId FunctionEntry() { return BailoutId(kFunctionEntryId); } 1114 static BailoutId FunctionEntry() { return BailoutId(kFunctionEntryId); }
1115 static BailoutId Declarations() { return BailoutId(kDeclarationsId); } 1115 static BailoutId Declarations() { return BailoutId(kDeclarationsId); }
1116 static BailoutId FirstUsable() { return BailoutId(kFirstUsableId); } 1116 static BailoutId FirstUsable() { return BailoutId(kFirstUsableId); }
1117 static BailoutId StubEntry() { return BailoutId(kStubEntryId); } 1117 static BailoutId StubEntry() { return BailoutId(kStubEntryId); }
1118 1118
1119 bool IsNone() const { return id_ == kNoneId; } 1119 bool IsNone() const { return id_ == kNoneId; }
1120 bool operator==(const BailoutId& other) const { return id_ == other.id_; } 1120 bool operator==(const BailoutId& other) const { return id_ == other.id_; }
1121 bool operator!=(const BailoutId& other) const { return id_ != other.id_; }
1121 1122
1122 private: 1123 private:
1123 static const int kNoneId = -1; 1124 static const int kNoneId = -1;
1124 1125
1125 // Using 0 could disguise errors. 1126 // Using 0 could disguise errors.
1126 static const int kFunctionEntryId = 2; 1127 static const int kFunctionEntryId = 2;
1127 1128
1128 // This AST id identifies the point after the declarations have been visited. 1129 // This AST id identifies the point after the declarations have been visited.
1129 // We need it to capture the environment effects of declarations that emit 1130 // We need it to capture the environment effects of declarations that emit
1130 // code (function declarations). 1131 // code (function declarations).
1131 static const int kDeclarationsId = 3; 1132 static const int kDeclarationsId = 3;
1132 1133
1133 // Every FunctionState starts with this id. 1134 // Every FunctionState starts with this id.
1134 static const int kFirstUsableId = 4; 1135 static const int kFirstUsableId = 4;
1135 1136
1136 // Every compiled stub starts with this id. 1137 // Every compiled stub starts with this id.
1137 static const int kStubEntryId = 5; 1138 static const int kStubEntryId = 5;
1138 1139
1139 int id_; 1140 int id_;
1140 }; 1141 };
1141 1142
1142 } } // namespace v8::internal 1143 } } // namespace v8::internal
1143 1144
1144 #endif // V8_UTILS_H_ 1145 #endif // V8_UTILS_H_
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698