| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |