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

Side by Side Diff: src/heap.h

Issue 50026: Fix lint. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « src/factory.h ('k') | src/heap.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 637
638 // Utility type maps 638 // Utility type maps
639 #define STRUCT_MAP_ACCESSOR(NAME, Name, name) \ 639 #define STRUCT_MAP_ACCESSOR(NAME, Name, name) \
640 static Map* name##_map() { return name##_map_; } 640 static Map* name##_map() { return name##_map_; }
641 STRUCT_LIST(STRUCT_MAP_ACCESSOR) 641 STRUCT_LIST(STRUCT_MAP_ACCESSOR)
642 #undef STRUCT_MAP_ACCESSOR 642 #undef STRUCT_MAP_ACCESSOR
643 643
644 #define SYMBOL_ACCESSOR(name, str) static String* name() { return name##_; } 644 #define SYMBOL_ACCESSOR(name, str) static String* name() { return name##_; }
645 SYMBOL_LIST(SYMBOL_ACCESSOR) 645 SYMBOL_LIST(SYMBOL_ACCESSOR)
646 #undef SYMBOL_ACCESSOR 646 #undef SYMBOL_ACCESSOR
647 647
648 // The hidden_symbol is special because it is the empty string, but does 648 // The hidden_symbol is special because it is the empty string, but does
649 // not match the empty string. 649 // not match the empty string.
650 static String* hidden_symbol() { return hidden_symbol_; } 650 static String* hidden_symbol() { return hidden_symbol_; }
651 651
652 // Iterates over all roots in the heap. 652 // Iterates over all roots in the heap.
653 static void IterateRoots(ObjectVisitor* v); 653 static void IterateRoots(ObjectVisitor* v);
654 // Iterates over all strong roots in the heap. 654 // Iterates over all strong roots in the heap.
655 static void IterateStrongRoots(ObjectVisitor* v); 655 static void IterateStrongRoots(ObjectVisitor* v);
656 656
657 // Iterates remembered set of an old space. 657 // Iterates remembered set of an old space.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 #undef ROOT_DECLARATION 884 #undef ROOT_DECLARATION
885 885
886 // Utility type maps 886 // Utility type maps
887 #define DECLARE_STRUCT_MAP(NAME, Name, name) static Map* name##_map_; 887 #define DECLARE_STRUCT_MAP(NAME, Name, name) static Map* name##_map_;
888 STRUCT_LIST(DECLARE_STRUCT_MAP) 888 STRUCT_LIST(DECLARE_STRUCT_MAP)
889 #undef DECLARE_STRUCT_MAP 889 #undef DECLARE_STRUCT_MAP
890 890
891 #define SYMBOL_DECLARATION(name, str) static String* name##_; 891 #define SYMBOL_DECLARATION(name, str) static String* name##_;
892 SYMBOL_LIST(SYMBOL_DECLARATION) 892 SYMBOL_LIST(SYMBOL_DECLARATION)
893 #undef SYMBOL_DECLARATION 893 #undef SYMBOL_DECLARATION
894 894
895 // The special hidden symbol which is an empty string, but does not match 895 // The special hidden symbol which is an empty string, but does not match
896 // any string when looked up in properties. 896 // any string when looked up in properties.
897 static String* hidden_symbol_; 897 static String* hidden_symbol_;
898 898
899 // GC callback function, called before and after mark-compact GC. 899 // GC callback function, called before and after mark-compact GC.
900 // Allocations in the callback function are disallowed. 900 // Allocations in the callback function are disallowed.
901 static GCCallback global_gc_prologue_callback_; 901 static GCCallback global_gc_prologue_callback_;
902 static GCCallback global_gc_epilogue_callback_; 902 static GCCallback global_gc_epilogue_callback_;
903 903
904 // Checks whether a global GC is necessary 904 // Checks whether a global GC is necessary
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 int marked_count_; 1300 int marked_count_;
1301 1301
1302 // The count from the end of the previous full GC. Will be zero if there 1302 // The count from the end of the previous full GC. Will be zero if there
1303 // was no previous full GC. 1303 // was no previous full GC.
1304 int previous_marked_count_; 1304 int previous_marked_count_;
1305 }; 1305 };
1306 1306
1307 } } // namespace v8::internal 1307 } } // namespace v8::internal
1308 1308
1309 #endif // V8_HEAP_H_ 1309 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698