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

Side by Side Diff: src/bootstrapper.h

Issue 660095: Merge revision 3813 to 3930 from bleeding_edge to partial snapshots branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: '' Created 10 years, 10 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/ast.h ('k') | src/bootstrapper.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698