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

Side by Side Diff: src/list.h

Issue 5005001: Split globals.h into two parts, where only one depends on V8. (Closed)
Patch Set: Addressed review comments. Created 10 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
« no previous file with comments | « src/globals.h ('k') | src/scanner-base.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Inlined implementation of ResizeAdd, shared by inlined and 141 // Inlined implementation of ResizeAdd, shared by inlined and
142 // non-inlined versions of ResizeAdd. 142 // non-inlined versions of ResizeAdd.
143 void ResizeAddInternal(const T& element); 143 void ResizeAddInternal(const T& element);
144 144
145 // Resize the list. 145 // Resize the list.
146 void Resize(int new_capacity); 146 void Resize(int new_capacity);
147 147
148 DISALLOW_COPY_AND_ASSIGN(List); 148 DISALLOW_COPY_AND_ASSIGN(List);
149 }; 149 };
150 150
151 class FrameElement;
152
153 // Add() is inlined, ResizeAdd() called by Add() is inlined except for
154 // Lists of FrameElements, and ResizeAddInternal() is inlined in ResizeAdd().
155 template <>
156 void List<FrameElement,
157 FreeStoreAllocationPolicy>::ResizeAdd(const FrameElement& element);
158
159 } } // namespace v8::internal 151 } } // namespace v8::internal
160 152
161 #endif // V8_LIST_H_ 153 #endif // V8_LIST_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/scanner-base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698