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

Side by Side Diff: src/factory.h

Issue 1428793002: Reland v8::Private and related APIs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 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
« include/v8.h ('K') | « src/api.cc ('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 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 #include "src/type-feedback-vector.h" 10 #include "src/type-feedback-vector.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // not make sense to have a UTF-8 factory function for external strings, 210 // not make sense to have a UTF-8 factory function for external strings,
211 // because we cannot change the underlying buffer. Note that these strings 211 // because we cannot change the underlying buffer. Note that these strings
212 // are backed by a string resource that resides outside the V8 heap. 212 // are backed by a string resource that resides outside the V8 heap.
213 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromOneByte( 213 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromOneByte(
214 const ExternalOneByteString::Resource* resource); 214 const ExternalOneByteString::Resource* resource);
215 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( 215 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte(
216 const ExternalTwoByteString::Resource* resource); 216 const ExternalTwoByteString::Resource* resource);
217 217
218 // Create a symbol. 218 // Create a symbol.
219 Handle<Symbol> NewSymbol(); 219 Handle<Symbol> NewSymbol();
220 Handle<Symbol> NewPrivateSymbol(Handle<Object> name); 220 Handle<Symbol> NewPrivateSymbol();
221 221
222 // Create a global (but otherwise uninitialized) context. 222 // Create a global (but otherwise uninitialized) context.
223 Handle<Context> NewNativeContext(); 223 Handle<Context> NewNativeContext();
224 224
225 // Create a script context. 225 // Create a script context.
226 Handle<Context> NewScriptContext(Handle<JSFunction> function, 226 Handle<Context> NewScriptContext(Handle<JSFunction> function,
227 Handle<ScopeInfo> scope_info); 227 Handle<ScopeInfo> scope_info);
228 228
229 // Create an empty script context table. 229 // Create an empty script context table.
230 Handle<ScriptContextTable> NewScriptContextTable(); 230 Handle<ScriptContextTable> NewScriptContextTable();
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 // size, but keeping the original prototype. The receiver must have at least 713 // size, but keeping the original prototype. The receiver must have at least
714 // the size of the new object. The object is reinitialized and behaves as an 714 // the size of the new object. The object is reinitialized and behaves as an
715 // object that has been freshly allocated. 715 // object that has been freshly allocated.
716 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 716 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
717 }; 717 };
718 718
719 } // namespace internal 719 } // namespace internal
720 } // namespace v8 720 } // namespace v8
721 721
722 #endif // V8_FACTORY_H_ 722 #endif // V8_FACTORY_H_
OLDNEW
« include/v8.h ('K') | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698