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

Side by Side Diff: src/factory.h

Issue 2459283004: [promises] Move CreateResolvingFunctions to c++ (Closed)
Patch Set: fix test Created 4 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
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/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous, 303 Handle<Context> NewDebugEvaluateContext(Handle<Context> previous,
304 Handle<ScopeInfo> scope_info, 304 Handle<ScopeInfo> scope_info,
305 Handle<JSReceiver> extension, 305 Handle<JSReceiver> extension,
306 Handle<Context> wrapped, 306 Handle<Context> wrapped,
307 Handle<StringSet> whitelist); 307 Handle<StringSet> whitelist);
308 308
309 // Create a block context. 309 // Create a block context.
310 Handle<Context> NewBlockContext(Handle<JSFunction> function, 310 Handle<Context> NewBlockContext(Handle<JSFunction> function,
311 Handle<Context> previous, 311 Handle<Context> previous,
312 Handle<ScopeInfo> scope_info); 312 Handle<ScopeInfo> scope_info);
313 // Create a promise context.
314 Handle<Context> NewPromiseResolvingFunctionContext(
315 Handle<JSFunction> function, Handle<Cell> already_visited,
316 Handle<JSObject> promise, Handle<Object> debug_event);
313 317
314 // Allocate a new struct. The struct is pretenured (allocated directly in 318 // Allocate a new struct. The struct is pretenured (allocated directly in
315 // the old generation). 319 // the old generation).
316 Handle<Struct> NewStruct(InstanceType type); 320 Handle<Struct> NewStruct(InstanceType type);
317 321
318 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( 322 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry(
319 int aliased_context_slot); 323 int aliased_context_slot);
320 324
321 Handle<AccessorInfo> NewAccessorInfo(); 325 Handle<AccessorInfo> NewAccessorInfo();
322 326
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 FunctionMode function_mode); 792 FunctionMode function_mode);
789 793
790 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 794 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
791 FunctionMode function_mode); 795 FunctionMode function_mode);
792 }; 796 };
793 797
794 } // namespace internal 798 } // namespace internal
795 } // namespace v8 799 } // namespace v8
796 800
797 #endif // V8_FACTORY_H_ 801 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698