OLD | NEW |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Traverses the pointers for memory management. | 53 // Traverses the pointers for memory management. |
54 static void Iterate(ObjectVisitor* v); | 54 static void Iterate(ObjectVisitor* v); |
55 | 55 |
56 // Accessors for the native scripts cache. Used in lazy loading. | 56 // Accessors for the native scripts cache. Used in lazy loading. |
57 static Handle<String> NativesSourceLookup(int index); | 57 static Handle<String> NativesSourceLookup(int index); |
58 static bool NativesCacheLookup(Vector<const char> name, | 58 static bool NativesCacheLookup(Vector<const char> name, |
59 Handle<JSFunction>* handle); | 59 Handle<JSFunction>* handle); |
60 static void NativesCacheAdd(Vector<const char> name, Handle<JSFunction> fun); | 60 static void NativesCacheAdd(Vector<const char> name, Handle<JSFunction> fun); |
61 | 61 |
62 // Append code that needs fixup at the end of boot strapping. | |
63 static void AddFixup(Code* code, MacroAssembler* masm); | |
64 | |
65 // Tells whether bootstrapping is active. | 62 // Tells whether bootstrapping is active. |
66 static bool IsActive(); | 63 static bool IsActive(); |
67 | 64 |
68 // Encoding/decoding support for fixup flags. | 65 // Encoding/decoding support for fixup flags. |
69 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {}; | 66 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {}; |
70 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {}; | 67 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {}; |
71 | 68 |
72 // Support for thread preemption. | 69 // Support for thread preemption. |
73 static int ArchiveSpacePerThread(); | 70 static int ArchiveSpacePerThread(); |
74 static char* ArchiveState(char* to); | 71 static char* ArchiveState(char* to); |
(...skipping 19 matching lines...) Expand all Loading... |
94 return length_; | 91 return length_; |
95 } | 92 } |
96 private: | 93 private: |
97 const char* data_; | 94 const char* data_; |
98 size_t length_; | 95 size_t length_; |
99 }; | 96 }; |
100 | 97 |
101 }} // namespace v8::internal | 98 }} // namespace v8::internal |
102 | 99 |
103 #endif // V8_BOOTSTRAPPER_H_ | 100 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |