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

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

Issue 622783002: Make PromiseRejectCallback fire after end-of-turn. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/runtime/runtime.cc ('k') | test/cctest/test-api.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/runtime/runtime.h" 8 #include "src/runtime/runtime.h"
9 #include "src/runtime/runtime-utils.h" 9 #include "src/runtime/runtime-utils.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 47
48 RUNTIME_FUNCTION(Runtime_RunMicrotasks) { 48 RUNTIME_FUNCTION(Runtime_RunMicrotasks) {
49 HandleScope scope(isolate); 49 HandleScope scope(isolate);
50 DCHECK(args.length() == 0); 50 DCHECK(args.length() == 0);
51 isolate->RunMicrotasks(); 51 isolate->RunMicrotasks();
52 return isolate->heap()->undefined_value(); 52 return isolate->heap()->undefined_value();
53 } 53 }
54 54
55 55
56 RUNTIME_FUNCTION(Runtime_PendingMicrotaskCount) {
57 HandleScope scope(isolate);
58 DCHECK(args.length() == 0);
59 return Smi::FromInt(isolate->pending_microtask_count());
60 }
61
62
56 RUNTIME_FUNCTION(Runtime_GetObservationState) { 63 RUNTIME_FUNCTION(Runtime_GetObservationState) {
57 SealHandleScope shs(isolate); 64 SealHandleScope shs(isolate);
58 DCHECK(args.length() == 0); 65 DCHECK(args.length() == 0);
59 return isolate->heap()->observation_state(); 66 return isolate->heap()->observation_state();
60 } 67 }
61 68
62 69
63 static bool ContextsHaveSameOrigin(Handle<Context> context1, 70 static bool ContextsHaveSameOrigin(Handle<Context> context1,
64 Handle<Context> context2) { 71 Handle<Context> context2) {
65 return context1->security_token() == context2->security_token(); 72 return context1->security_token() == context2->security_token();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 RUNTIME_FUNCTION(Runtime_GetObjectContextNotifierPerformChange) { 124 RUNTIME_FUNCTION(Runtime_GetObjectContextNotifierPerformChange) {
118 HandleScope scope(isolate); 125 HandleScope scope(isolate);
119 DCHECK(args.length() == 1); 126 DCHECK(args.length() == 1);
120 CONVERT_ARG_HANDLE_CHECKED(JSObject, object_info, 0); 127 CONVERT_ARG_HANDLE_CHECKED(JSObject, object_info, 0);
121 128
122 Handle<Context> context(object_info->GetCreationContext(), isolate); 129 Handle<Context> context(object_info->GetCreationContext(), isolate);
123 return context->native_object_notifier_perform_change(); 130 return context->native_object_notifier_perform_change();
124 } 131 }
125 } 132 }
126 } // namespace v8::internal 133 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698