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

Side by Side Diff: src/zone-inl.h

Issue 9297052: Include what you use for the files zone* (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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
« src/zone.cc ('K') | « src/zone.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 10 matching lines...) Expand all
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_ZONE_INL_H_ 28 #ifndef V8_ZONE_INL_H_
29 #define V8_ZONE_INL_H_ 29 #define V8_ZONE_INL_H_
30 30
31 #include <stddef.h>
Kevin Millikin (Chromium) 2012/01/30 09:25:45 <stddef.h> and <stdint.h> come to us via ../includ
32 #include <stdint.h>
33
34 #include "checks.h"
Kevin Millikin (Chromium) 2012/01/30 09:25:45 Since zone.h includes checks.h, globals.h, and spl
35 #include "counters.h"
36 #include "globals.h"
31 #include "isolate.h" 37 #include "isolate.h"
38 #include "splay-tree.h"
39 #include "utils.h"
40 #include "v8-counters.h"
32 #include "zone.h" 41 #include "zone.h"
Kevin Millikin (Chromium) 2012/01/30 09:25:45 Please include zone.h first, separated from the ot
33 #include "v8-counters.h"
34 42
35 namespace v8 { 43 namespace v8 {
36 namespace internal { 44 namespace internal {
37 45
38 46
39 AssertNoZoneAllocation::AssertNoZoneAllocation() 47 AssertNoZoneAllocation::AssertNoZoneAllocation()
40 : prev_(Isolate::Current()->zone_allow_allocation()) { 48 : prev_(Isolate::Current()->zone_allow_allocation()) {
41 Isolate::Current()->set_zone_allow_allocation(false); 49 Isolate::Current()->set_zone_allow_allocation(false);
42 } 50 }
43 51
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 152
145 153
146 int ZoneScope::nesting() { 154 int ZoneScope::nesting() {
147 return Isolate::Current()->zone()->scope_nesting_; 155 return Isolate::Current()->zone()->scope_nesting_;
148 } 156 }
149 157
150 158
151 } } // namespace v8::internal 159 } } // namespace v8::internal
152 160
153 #endif // V8_ZONE_INL_H_ 161 #endif // V8_ZONE_INL_H_
OLDNEW
« src/zone.cc ('K') | « src/zone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698