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

Side by Side Diff: src/runtime.cc

Issue 362783002: Introduce debug events for Microtask queue. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: addressed Created 6 years, 5 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/runtime.h ('k') | test/mjsunit/es6/debug-promises-async-task-event.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 5558 matching lines...) Expand 10 before | Expand all | Expand 10 after
5569 5569
5570 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) { 5570 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) {
5571 ASSERT(args.length() == 1); 5571 ASSERT(args.length() == 1);
5572 HandleScope scope(isolate); 5572 HandleScope scope(isolate);
5573 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); 5573 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5574 isolate->debug()->OnPromiseEvent(data); 5574 isolate->debug()->OnPromiseEvent(data);
5575 return isolate->heap()->undefined_value(); 5575 return isolate->heap()->undefined_value();
5576 } 5576 }
5577 5577
5578 5578
5579 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) {
5580 ASSERT(args.length() == 1);
5581 HandleScope scope(isolate);
5582 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5583 isolate->debug()->OnAsyncTaskEvent(data);
5584 return isolate->heap()->undefined_value();
5585 }
5586
5587
5579 RUNTIME_FUNCTION(Runtime_DeleteProperty) { 5588 RUNTIME_FUNCTION(Runtime_DeleteProperty) {
5580 HandleScope scope(isolate); 5589 HandleScope scope(isolate);
5581 ASSERT(args.length() == 3); 5590 ASSERT(args.length() == 3);
5582 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); 5591 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0);
5583 CONVERT_ARG_HANDLE_CHECKED(Name, key, 1); 5592 CONVERT_ARG_HANDLE_CHECKED(Name, key, 1);
5584 CONVERT_STRICT_MODE_ARG_CHECKED(strict_mode, 2); 5593 CONVERT_STRICT_MODE_ARG_CHECKED(strict_mode, 2);
5585 JSReceiver::DeleteMode delete_mode = strict_mode == STRICT 5594 JSReceiver::DeleteMode delete_mode = strict_mode == STRICT
5586 ? JSReceiver::STRICT_DELETION : JSReceiver::NORMAL_DELETION; 5595 ? JSReceiver::STRICT_DELETION : JSReceiver::NORMAL_DELETION;
5587 Handle<Object> result; 5596 Handle<Object> result;
5588 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 5597 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
(...skipping 9514 matching lines...) Expand 10 before | Expand all | Expand 10 after
15103 } 15112 }
15104 return NULL; 15113 return NULL;
15105 } 15114 }
15106 15115
15107 15116
15108 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15117 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15109 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15118 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15110 } 15119 }
15111 15120
15112 } } // namespace v8::internal 15121 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | test/mjsunit/es6/debug-promises-async-task-event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698