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

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: 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
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 5517 matching lines...) Expand 10 before | Expand all | Expand 10 after
5528 5528
5529 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) { 5529 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) {
5530 ASSERT(args.length() == 1); 5530 ASSERT(args.length() == 1);
5531 HandleScope scope(isolate); 5531 HandleScope scope(isolate);
5532 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); 5532 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5533 isolate->debug()->OnPromiseEvent(data); 5533 isolate->debug()->OnPromiseEvent(data);
5534 return isolate->heap()->undefined_value(); 5534 return isolate->heap()->undefined_value();
5535 } 5535 }
5536 5536
5537 5537
5538 RUNTIME_FUNCTION(Runtime_DebugAsyncTaskEvent) {
5539 ASSERT(args.length() == 1);
5540 HandleScope scope(isolate);
5541 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5542 isolate->debug()->OnAsyncTaskEvent(data);
5543 return isolate->heap()->undefined_value();
5544 }
5545
5546
5538 RUNTIME_FUNCTION(Runtime_DeleteProperty) { 5547 RUNTIME_FUNCTION(Runtime_DeleteProperty) {
5539 HandleScope scope(isolate); 5548 HandleScope scope(isolate);
5540 ASSERT(args.length() == 3); 5549 ASSERT(args.length() == 3);
5541 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); 5550 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0);
5542 CONVERT_ARG_HANDLE_CHECKED(Name, key, 1); 5551 CONVERT_ARG_HANDLE_CHECKED(Name, key, 1);
5543 CONVERT_STRICT_MODE_ARG_CHECKED(strict_mode, 2); 5552 CONVERT_STRICT_MODE_ARG_CHECKED(strict_mode, 2);
5544 JSReceiver::DeleteMode delete_mode = strict_mode == STRICT 5553 JSReceiver::DeleteMode delete_mode = strict_mode == STRICT
5545 ? JSReceiver::STRICT_DELETION : JSReceiver::NORMAL_DELETION; 5554 ? JSReceiver::STRICT_DELETION : JSReceiver::NORMAL_DELETION;
5546 Handle<Object> result; 5555 Handle<Object> result;
5547 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 5556 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
(...skipping 9531 matching lines...) Expand 10 before | Expand all | Expand 10 after
15079 } 15088 }
15080 return NULL; 15089 return NULL;
15081 } 15090 }
15082 15091
15083 15092
15084 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15093 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15085 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15094 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15086 } 15095 }
15087 15096
15088 } } // namespace v8::internal 15097 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698