OLD | NEW |
---|---|
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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1132 static const int kDeclarationsId = 3; | 1132 static const int kDeclarationsId = 3; |
1133 | 1133 |
1134 // Every FunctionState starts with this id. | 1134 // Every FunctionState starts with this id. |
1135 static const int kFirstUsableId = 4; | 1135 static const int kFirstUsableId = 4; |
1136 | 1136 |
1137 // Every compiled stub starts with this id. | 1137 // Every compiled stub starts with this id. |
1138 static const int kStubEntryId = 5; | 1138 static const int kStubEntryId = 5; |
1139 | 1139 |
1140 int id_; | 1140 int id_; |
1141 }; | 1141 }; |
1142 | 1142 |
Jakob Kummerow
2014/02/07 11:48:04
nit: two empty lines please (doesn't presubmit com
| |
1143 template <class C> | |
1144 class ContainerPointerWrapper { | |
1145 public: | |
1146 typedef typename C::iterator iterator; | |
1147 typedef typename C::reverse_iterator reverse_iterator; | |
1148 explicit ContainerPointerWrapper(C* container) : container_(container) {} | |
1149 iterator begin() { return container_->begin(); } | |
1150 iterator end() { return container_->end(); } | |
1151 reverse_iterator rbegin() { return container_->rbegin(); } | |
1152 reverse_iterator rend() { return container_->rend(); } | |
1153 private: | |
1154 C* container_; | |
1155 }; | |
1156 | |
1143 } } // namespace v8::internal | 1157 } } // namespace v8::internal |
1144 | 1158 |
1145 #endif // V8_UTILS_H_ | 1159 #endif // V8_UTILS_H_ |
OLD | NEW |