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

Side by Side Diff: src/bootstrapper.h

Issue 2040001: Remove unused declarations. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | 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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Traverses the pointers for memory management. 74 // Traverses the pointers for memory management.
75 static void Iterate(ObjectVisitor* v); 75 static void Iterate(ObjectVisitor* v);
76 76
77 // Accessor for the native scripts source code. 77 // Accessor for the native scripts source code.
78 static Handle<String> NativesSourceLookup(int index); 78 static Handle<String> NativesSourceLookup(int index);
79 79
80 // Tells whether bootstrapping is active. 80 // Tells whether bootstrapping is active.
81 static bool IsActive() { return BootstrapperActive::IsActive(); } 81 static bool IsActive() { return BootstrapperActive::IsActive(); }
82 82
83 // Encoding/decoding support for fixup flags.
84 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {};
85 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {};
86
87 // Support for thread preemption. 83 // Support for thread preemption.
88 static int ArchiveSpacePerThread(); 84 static int ArchiveSpacePerThread();
89 static char* ArchiveState(char* to); 85 static char* ArchiveState(char* to);
90 static char* RestoreState(char* from); 86 static char* RestoreState(char* from);
91 static void FreeThreadResources(); 87 static void FreeThreadResources();
92 88
93 // This will allocate a char array that is deleted when V8 is shut down. 89 // This will allocate a char array that is deleted when V8 is shut down.
94 // It should only be used for strictly finite allocations. 90 // It should only be used for strictly finite allocations.
95 static char* AllocateAutoDeletedArray(int bytes); 91 static char* AllocateAutoDeletedArray(int bytes);
96 92
(...skipping 16 matching lines...) Expand all
113 return length_; 109 return length_;
114 } 110 }
115 private: 111 private:
116 const char* data_; 112 const char* data_;
117 size_t length_; 113 size_t length_;
118 }; 114 };
119 115
120 }} // namespace v8::internal 116 }} // namespace v8::internal
121 117
122 #endif // V8_BOOTSTRAPPER_H_ 118 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698