| Index: src/utils.h
|
| diff --git a/src/utils.h b/src/utils.h
|
| index ea76deda7ac315bba0c1e9e903816c9914a88987..c86fcba7829c924e7b83a016085febdc2ed08f58 100644
|
| --- a/src/utils.h
|
| +++ b/src/utils.h
|
| @@ -1211,6 +1211,21 @@ class BailoutId {
|
| int id_;
|
| };
|
|
|
| +
|
| +template <class C>
|
| +class ContainerPointerWrapper {
|
| + public:
|
| + typedef typename C::iterator iterator;
|
| + typedef typename C::reverse_iterator reverse_iterator;
|
| + explicit ContainerPointerWrapper(C* container) : container_(container) {}
|
| + iterator begin() { return container_->begin(); }
|
| + iterator end() { return container_->end(); }
|
| + reverse_iterator rbegin() { return container_->rbegin(); }
|
| + reverse_iterator rend() { return container_->rend(); }
|
| + private:
|
| + C* container_;
|
| +};
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_UTILS_H_
|
|
|