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

Side by Side Diff: src/factory.h

Issue 2915793002: [api] Prototype WeakRef implementation
Patch Set: Created 3 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 | « src/deoptimizer.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/feedback-vector.h" 8 #include "src/feedback-vector.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // It does not cache the resource data pointer. 263 // It does not cache the resource data pointer.
264 Handle<ExternalOneByteString> NewNativeSourceString( 264 Handle<ExternalOneByteString> NewNativeSourceString(
265 const ExternalOneByteString::Resource* resource); 265 const ExternalOneByteString::Resource* resource);
266 266
267 // Create a symbol. 267 // Create a symbol.
268 Handle<Symbol> NewSymbol(); 268 Handle<Symbol> NewSymbol();
269 Handle<Symbol> NewPrivateSymbol(); 269 Handle<Symbol> NewPrivateSymbol();
270 270
271 // Create a promise. 271 // Create a promise.
272 Handle<JSPromise> NewJSPromise(); 272 Handle<JSPromise> NewJSPromise();
273 void InitJSWeakRef(
274 Handle<JSWeakRef> weak_ref,
275 Handle<JSObject> target,
276 Handle<JSFunction> executor,
277 Handle<Object> holdings);
273 278
274 // Create a global (but otherwise uninitialized) context. 279 // Create a global (but otherwise uninitialized) context.
275 Handle<Context> NewNativeContext(); 280 Handle<Context> NewNativeContext();
276 281
277 // Create a script context. 282 // Create a script context.
278 Handle<Context> NewScriptContext(Handle<JSFunction> function, 283 Handle<Context> NewScriptContext(Handle<JSFunction> function,
279 Handle<ScopeInfo> scope_info); 284 Handle<ScopeInfo> scope_info);
280 285
281 // Create an empty script context table. 286 // Create an empty script context table.
282 Handle<ScriptContextTable> NewScriptContextTable(); 287 Handle<ScriptContextTable> NewScriptContextTable();
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 844 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
840 FunctionMode function_mode); 845 FunctionMode function_mode);
841 846
842 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 847 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
843 }; 848 };
844 849
845 } // namespace internal 850 } // namespace internal
846 } // namespace v8 851 } // namespace v8
847 852
848 #endif // V8_FACTORY_H_ 853 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698