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

Side by Side Diff: src/factory.h

Issue 48923002: Provide private symbols through internal APIs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Mo comments Created 7 years, 1 month 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/array-iterator.js ('k') | src/factory.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // in the system: ASCII and two byte. Unlike other String types, it does 177 // in the system: ASCII and two byte. Unlike other String types, it does
178 // not make sense to have a UTF-8 factory function for external strings, 178 // not make sense to have a UTF-8 factory function for external strings,
179 // because we cannot change the underlying buffer. 179 // because we cannot change the underlying buffer.
180 Handle<String> NewExternalStringFromAscii( 180 Handle<String> NewExternalStringFromAscii(
181 const ExternalAsciiString::Resource* resource); 181 const ExternalAsciiString::Resource* resource);
182 Handle<String> NewExternalStringFromTwoByte( 182 Handle<String> NewExternalStringFromTwoByte(
183 const ExternalTwoByteString::Resource* resource); 183 const ExternalTwoByteString::Resource* resource);
184 184
185 // Create a symbol. 185 // Create a symbol.
186 Handle<Symbol> NewSymbol(); 186 Handle<Symbol> NewSymbol();
187 Handle<Symbol> NewPrivateSymbol();
187 188
188 // Create a global (but otherwise uninitialized) context. 189 // Create a global (but otherwise uninitialized) context.
189 Handle<Context> NewNativeContext(); 190 Handle<Context> NewNativeContext();
190 191
191 // Create a global context. 192 // Create a global context.
192 Handle<Context> NewGlobalContext(Handle<JSFunction> function, 193 Handle<Context> NewGlobalContext(Handle<JSFunction> function,
193 Handle<ScopeInfo> scope_info); 194 Handle<ScopeInfo> scope_info);
194 195
195 // Create a module context. 196 // Create a module context.
196 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); 197 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info);
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } 676 }
676 677
677 private: 678 private:
678 Isolate* isolate_; 679 Isolate* isolate_;
679 }; 680 };
680 681
681 682
682 } } // namespace v8::internal 683 } } // namespace v8::internal
683 684
684 #endif // V8_FACTORY_H_ 685 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/array-iterator.js ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698