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

Side by Side Diff: src/bootstrapper.h

Issue 669240: - Remove function boilerplate objects and use SharedFunctionInfos in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Committed Created 10 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/ast.cc ('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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Detach the environment from its outer global object. 50 // Detach the environment from its outer global object.
51 static void DetachGlobal(Handle<Context> env); 51 static void DetachGlobal(Handle<Context> env);
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<SharedFunctionInfo>* handle);
60 static void NativesCacheAdd(Vector<const char> name, Handle<JSFunction> fun); 60 static void NativesCacheAdd(Vector<const char> name,
61 Handle<SharedFunctionInfo> fun);
61 62
62 // Tells whether bootstrapping is active. 63 // Tells whether bootstrapping is active.
63 static bool IsActive(); 64 static bool IsActive();
64 65
65 // Encoding/decoding support for fixup flags. 66 // Encoding/decoding support for fixup flags.
66 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {}; 67 class FixupFlagsUseCodeObject: public BitField<bool, 0, 1> {};
67 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {}; 68 class FixupFlagsArgumentsCount: public BitField<uint32_t, 1, 32-1> {};
68 69
69 // Support for thread preemption. 70 // Support for thread preemption.
70 static int ArchiveSpacePerThread(); 71 static int ArchiveSpacePerThread();
(...skipping 20 matching lines...) Expand all
91 return length_; 92 return length_;
92 } 93 }
93 private: 94 private:
94 const char* data_; 95 const char* data_;
95 size_t length_; 96 size_t length_;
96 }; 97 };
97 98
98 }} // namespace v8::internal 99 }} // namespace v8::internal
99 100
100 #endif // V8_BOOTSTRAPPER_H_ 101 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698