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

Side by Side Diff: src/runtime/runtime-internal.cc

Issue 2412263002: [promises] rename PromiseContainer to PromiseResolveThenableJobInfo (Closed)
Patch Set: fix build Created 4 years, 2 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/objects-printer.cc ('k') | no next file » | 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 #include "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 589
590 RUNTIME_FUNCTION(Runtime_EnqueuePromiseResolveThenableJob) { 590 RUNTIME_FUNCTION(Runtime_EnqueuePromiseResolveThenableJob) {
591 HandleScope scope(isolate); 591 HandleScope scope(isolate);
592 DCHECK(args.length() == 6); 592 DCHECK(args.length() == 6);
593 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, resolution, 0); 593 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, resolution, 0);
594 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, then, 1); 594 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, then, 1);
595 CONVERT_ARG_HANDLE_CHECKED(JSFunction, resolve, 2); 595 CONVERT_ARG_HANDLE_CHECKED(JSFunction, resolve, 2);
596 CONVERT_ARG_HANDLE_CHECKED(JSFunction, reject, 3); 596 CONVERT_ARG_HANDLE_CHECKED(JSFunction, reject, 3);
597 CONVERT_ARG_HANDLE_CHECKED(Object, before_debug_event, 4); 597 CONVERT_ARG_HANDLE_CHECKED(Object, before_debug_event, 4);
598 CONVERT_ARG_HANDLE_CHECKED(Object, after_debug_event, 5); 598 CONVERT_ARG_HANDLE_CHECKED(Object, after_debug_event, 5);
599 Handle<PromiseContainer> container = isolate->factory()->NewPromiseContainer( 599 Handle<PromiseResolveThenableJobInfo> info =
600 resolution, then, resolve, reject, before_debug_event, after_debug_event); 600 isolate->factory()->NewPromiseResolveThenableJobInfo(
601 isolate->EnqueueMicrotask(container); 601 resolution, then, resolve, reject, before_debug_event,
602 after_debug_event);
603 isolate->EnqueueMicrotask(info);
602 return isolate->heap()->undefined_value(); 604 return isolate->heap()->undefined_value();
603 } 605 }
604 606
605 RUNTIME_FUNCTION(Runtime_EnqueueMicrotask) { 607 RUNTIME_FUNCTION(Runtime_EnqueueMicrotask) {
606 HandleScope scope(isolate); 608 HandleScope scope(isolate);
607 DCHECK(args.length() == 1); 609 DCHECK(args.length() == 1);
608 CONVERT_ARG_HANDLE_CHECKED(JSFunction, microtask, 0); 610 CONVERT_ARG_HANDLE_CHECKED(JSFunction, microtask, 0);
609 isolate->EnqueueMicrotask(microtask); 611 isolate->EnqueueMicrotask(microtask);
610 return isolate->heap()->undefined_value(); 612 return isolate->heap()->undefined_value();
611 } 613 }
(...skipping 25 matching lines...) Expand all
637 639
638 RUNTIME_FUNCTION(Runtime_Typeof) { 640 RUNTIME_FUNCTION(Runtime_Typeof) {
639 HandleScope scope(isolate); 641 HandleScope scope(isolate);
640 DCHECK_EQ(1, args.length()); 642 DCHECK_EQ(1, args.length());
641 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 643 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
642 return *Object::TypeOf(isolate, object); 644 return *Object::TypeOf(isolate, object);
643 } 645 }
644 646
645 } // namespace internal 647 } // namespace internal
646 } // namespace v8 648 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698