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

Side by Side Diff: src/heap.cc

Issue 115756: Split nested namespaces declaration in two lines in accordance with C++ Style Guide. (Closed)
Patch Set: Created 11 years, 7 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
« src/accessors.h ('K') | « src/heap.h ('k') | src/heap-inl.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 22 matching lines...) Expand all
33 #include "codegen-inl.h" 33 #include "codegen-inl.h"
34 #include "compilation-cache.h" 34 #include "compilation-cache.h"
35 #include "debug.h" 35 #include "debug.h"
36 #include "global-handles.h" 36 #include "global-handles.h"
37 #include "mark-compact.h" 37 #include "mark-compact.h"
38 #include "natives.h" 38 #include "natives.h"
39 #include "scanner.h" 39 #include "scanner.h"
40 #include "scopeinfo.h" 40 #include "scopeinfo.h"
41 #include "v8threads.h" 41 #include "v8threads.h"
42 42
43 namespace v8 { namespace internal { 43 namespace v8 {
44 namespace internal {
44 45
45 #define ROOT_ALLOCATION(type, name) type* Heap::name##_; 46 #define ROOT_ALLOCATION(type, name) type* Heap::name##_;
46 ROOT_LIST(ROOT_ALLOCATION) 47 ROOT_LIST(ROOT_ALLOCATION)
47 #undef ROOT_ALLOCATION 48 #undef ROOT_ALLOCATION
48 49
49 50
50 #define STRUCT_ALLOCATION(NAME, Name, name) Map* Heap::name##_map_; 51 #define STRUCT_ALLOCATION(NAME, Name, name) Map* Heap::name##_map_;
51 STRUCT_LIST(STRUCT_ALLOCATION) 52 STRUCT_LIST(STRUCT_ALLOCATION)
52 #undef STRUCT_ALLOCATION 53 #undef STRUCT_ALLOCATION
53 54
(...skipping 3405 matching lines...) Expand 10 before | Expand all | Expand 10 after
3459 #ifdef DEBUG 3460 #ifdef DEBUG
3460 bool Heap::GarbageCollectionGreedyCheck() { 3461 bool Heap::GarbageCollectionGreedyCheck() {
3461 ASSERT(FLAG_gc_greedy); 3462 ASSERT(FLAG_gc_greedy);
3462 if (Bootstrapper::IsActive()) return true; 3463 if (Bootstrapper::IsActive()) return true;
3463 if (disallow_allocation_failure()) return true; 3464 if (disallow_allocation_failure()) return true;
3464 return CollectGarbage(0, NEW_SPACE); 3465 return CollectGarbage(0, NEW_SPACE);
3465 } 3466 }
3466 #endif 3467 #endif
3467 3468
3468 } } // namespace v8::internal 3469 } } // namespace v8::internal
OLDNEW
« src/accessors.h ('K') | « src/heap.h ('k') | src/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698