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

Side by Side Diff: src/factory.h

Issue 1182303004: All private symbols are own symbols (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 years, 6 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
« no previous file with comments | « no previous file | 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // not make sense to have a UTF-8 factory function for external strings, 218 // not make sense to have a UTF-8 factory function for external strings,
219 // because we cannot change the underlying buffer. Note that these strings 219 // because we cannot change the underlying buffer. Note that these strings
220 // are backed by a string resource that resides outside the V8 heap. 220 // are backed by a string resource that resides outside the V8 heap.
221 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromOneByte( 221 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromOneByte(
222 const ExternalOneByteString::Resource* resource); 222 const ExternalOneByteString::Resource* resource);
223 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( 223 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte(
224 const ExternalTwoByteString::Resource* resource); 224 const ExternalTwoByteString::Resource* resource);
225 225
226 // Create a symbol. 226 // Create a symbol.
227 Handle<Symbol> NewSymbol(); 227 Handle<Symbol> NewSymbol();
228 Handle<Symbol> NewPrivateSymbol(); 228 Handle<Symbol> NewPrivateSymbol(Handle<Object> name);
229 Handle<Symbol> NewPrivateOwnSymbol(Handle<Object> name);
230 229
231 // Create a global (but otherwise uninitialized) context. 230 // Create a global (but otherwise uninitialized) context.
232 Handle<Context> NewNativeContext(); 231 Handle<Context> NewNativeContext();
233 232
234 // Create a script context. 233 // Create a script context.
235 Handle<Context> NewScriptContext(Handle<JSFunction> function, 234 Handle<Context> NewScriptContext(Handle<JSFunction> function,
236 Handle<ScopeInfo> scope_info); 235 Handle<ScopeInfo> scope_info);
237 236
238 // Create an empty script context table. 237 // Create an empty script context table.
239 Handle<ScriptContextTable> NewScriptContextTable(); 238 Handle<ScriptContextTable> NewScriptContextTable();
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 // Reinitialize a JSProxy into an (empty) JS object of respective type and 737 // Reinitialize a JSProxy into an (empty) JS object of respective type and
739 // size, but keeping the original prototype. The receiver must have at least 738 // size, but keeping the original prototype. The receiver must have at least
740 // the size of the new object. The object is reinitialized and behaves as an 739 // the size of the new object. The object is reinitialized and behaves as an
741 // object that has been freshly allocated. 740 // object that has been freshly allocated.
742 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 741 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
743 }; 742 };
744 743
745 } } // namespace v8::internal 744 } } // namespace v8::internal
746 745
747 #endif // V8_FACTORY_H_ 746 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698