| 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 5512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5523 | 5523 |
| 5524 | 5524 |
| 5525 RUNTIME_FUNCTION(Runtime_DebugPromiseHandleEpilogue) { | 5525 RUNTIME_FUNCTION(Runtime_DebugPromiseHandleEpilogue) { |
| 5526 ASSERT(args.length() == 0); | 5526 ASSERT(args.length() == 0); |
| 5527 SealHandleScope shs(isolate); | 5527 SealHandleScope shs(isolate); |
| 5528 isolate->debug()->PromiseHandleEpilogue(); | 5528 isolate->debug()->PromiseHandleEpilogue(); |
| 5529 return isolate->heap()->undefined_value(); | 5529 return isolate->heap()->undefined_value(); |
| 5530 } | 5530 } |
| 5531 | 5531 |
| 5532 | 5532 |
| 5533 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) { |
| 5534 ASSERT(args.length() == 1); |
| 5535 HandleScope scope(isolate); |
| 5536 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); |
| 5537 isolate->debug()->OnPromiseEvent(data); |
| 5538 return isolate->heap()->undefined_value(); |
| 5539 } |
| 5540 |
| 5541 |
| 5533 RUNTIME_FUNCTION(Runtime_DeleteProperty) { | 5542 RUNTIME_FUNCTION(Runtime_DeleteProperty) { |
| 5534 HandleScope scope(isolate); | 5543 HandleScope scope(isolate); |
| 5535 ASSERT(args.length() == 3); | 5544 ASSERT(args.length() == 3); |
| 5536 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); | 5545 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, object, 0); |
| 5537 CONVERT_ARG_HANDLE_CHECKED(Name, key, 1); | 5546 CONVERT_ARG_HANDLE_CHECKED(Name, key, 1); |
| 5538 CONVERT_STRICT_MODE_ARG_CHECKED(strict_mode, 2); | 5547 CONVERT_STRICT_MODE_ARG_CHECKED(strict_mode, 2); |
| 5539 JSReceiver::DeleteMode delete_mode = strict_mode == STRICT | 5548 JSReceiver::DeleteMode delete_mode = strict_mode == STRICT |
| 5540 ? JSReceiver::STRICT_DELETION : JSReceiver::NORMAL_DELETION; | 5549 ? JSReceiver::STRICT_DELETION : JSReceiver::NORMAL_DELETION; |
| 5541 Handle<Object> result; | 5550 Handle<Object> result; |
| 5542 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 5551 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| (...skipping 9547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15090 } | 15099 } |
| 15091 return NULL; | 15100 return NULL; |
| 15092 } | 15101 } |
| 15093 | 15102 |
| 15094 | 15103 |
| 15095 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15104 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
| 15096 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15105 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
| 15097 } | 15106 } |
| 15098 | 15107 |
| 15099 } } // namespace v8::internal | 15108 } } // namespace v8::internal |
| OLD | NEW |