| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Detach the environment from its outer global object. | 68 // Detach the environment from its outer global object. |
| 69 static void DetachGlobal(Handle<Context> env); | 69 static void DetachGlobal(Handle<Context> env); |
| 70 | 70 |
| 71 // Traverses the pointers for memory management. | 71 // Traverses the pointers for memory management. |
| 72 static void Iterate(ObjectVisitor* v); | 72 static void Iterate(ObjectVisitor* v); |
| 73 | 73 |
| 74 // Accessors for the native scripts cache. Used in lazy loading. | 74 // Accessors for the native scripts cache. Used in lazy loading. |
| 75 static Handle<String> NativesSourceLookup(int index); | 75 static Handle<String> NativesSourceLookup(int index); |
| 76 | 76 |
| 77 // Append code that needs fixup at the end of boot strapping. | |
| 78 static void AddFixup(Code* code, MacroAssembler* masm); | |
| 79 | |
| 80 // Tells whether bootstrapping is active. | 77 // Tells whether bootstrapping is active. |
| 81 static bool IsActive() { return BootstrapperActive::IsActive(); } | 78 static bool IsActive() { return BootstrapperActive::IsActive(); } |
| 82 | 79 |
| 83 // Encoding/decoding support for fixup flags. | 80 // Encoding/decoding support for fixup flags. |
| 84 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {}; | 81 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {}; |
| 85 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {}; | 82 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {}; |
| 86 | 83 |
| 87 // Support for thread preemption. | 84 // Support for thread preemption. |
| 88 static int ArchiveSpacePerThread(); | 85 static int ArchiveSpacePerThread(); |
| 89 static char* ArchiveState(char* to); | 86 static char* ArchiveState(char* to); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 113 return length_; | 110 return length_; |
| 114 } | 111 } |
| 115 private: | 112 private: |
| 116 const char* data_; | 113 const char* data_; |
| 117 size_t length_; | 114 size_t length_; |
| 118 }; | 115 }; |
| 119 | 116 |
| 120 }} // namespace v8::internal | 117 }} // namespace v8::internal |
| 121 | 118 |
| 122 #endif // V8_BOOTSTRAPPER_H_ | 119 #endif // V8_BOOTSTRAPPER_H_ |
| OLD | NEW |