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 5503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5514 | 5514 |
5515 | 5515 |
5516 RUNTIME_FUNCTION(Runtime_DebugPromiseHandleEpilogue) { | 5516 RUNTIME_FUNCTION(Runtime_DebugPromiseHandleEpilogue) { |
5517 ASSERT(args.length() == 0); | 5517 ASSERT(args.length() == 0); |
5518 SealHandleScope shs(isolate); | 5518 SealHandleScope shs(isolate); |
5519 isolate->debug()->PromiseHandleEpilogue(); | 5519 isolate->debug()->PromiseHandleEpilogue(); |
5520 return isolate->heap()->undefined_value(); | 5520 return isolate->heap()->undefined_value(); |
5521 } | 5521 } |
5522 | 5522 |
5523 | 5523 |
| 5524 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) { |
| 5525 ASSERT(args.length() == 1); |
| 5526 HandleScope scope(isolate); |
| 5527 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); |
| 5528 isolate->debug()->OnPromiseEvent(data); |
| 5529 return isolate->heap()->undefined_value(); |
| 5530 } |
| 5531 |
| 5532 |
5524 // Set an own property, even if it is READ_ONLY. If the property does not | 5533 // Set an own property, even if it is READ_ONLY. If the property does not |
5525 // exist, it will be added with attributes NONE. | 5534 // exist, it will be added with attributes NONE. |
5526 RUNTIME_FUNCTION(Runtime_IgnoreAttributesAndSetProperty) { | 5535 RUNTIME_FUNCTION(Runtime_IgnoreAttributesAndSetProperty) { |
5527 HandleScope scope(isolate); | 5536 HandleScope scope(isolate); |
5528 RUNTIME_ASSERT(args.length() == 3 || args.length() == 4); | 5537 RUNTIME_ASSERT(args.length() == 3 || args.length() == 4); |
5529 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); | 5538 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0); |
5530 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 5539 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
5531 CONVERT_ARG_HANDLE_CHECKED(Object, value, 2); | 5540 CONVERT_ARG_HANDLE_CHECKED(Object, value, 2); |
5532 // Compute attributes. | 5541 // Compute attributes. |
5533 PropertyAttributes attributes = NONE; | 5542 PropertyAttributes attributes = NONE; |
(...skipping 9587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15121 } | 15130 } |
15122 return NULL; | 15131 return NULL; |
15123 } | 15132 } |
15124 | 15133 |
15125 | 15134 |
15126 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15135 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15127 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15136 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15128 } | 15137 } |
15129 | 15138 |
15130 } } // namespace v8::internal | 15139 } } // namespace v8::internal |
OLD | NEW |