| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/conversions.h" | 9 #include "src/conversions.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 | 83 |
| 84 RUNTIME_FUNCTION(Runtime_ReThrow) { | 84 RUNTIME_FUNCTION(Runtime_ReThrow) { |
| 85 HandleScope scope(isolate); | 85 HandleScope scope(isolate); |
| 86 DCHECK(args.length() == 1); | 86 DCHECK(args.length() == 1); |
| 87 return isolate->ReThrow(args[0]); | 87 return isolate->ReThrow(args[0]); |
| 88 } | 88 } |
| 89 | 89 |
| 90 | 90 |
| 91 RUNTIME_FUNCTION(Runtime_ThrowStackOverflow) { |
| 92 SealHandleScope shs(isolate); |
| 93 DCHECK_EQ(0, args.length()); |
| 94 return isolate->StackOverflow(); |
| 95 } |
| 96 |
| 97 |
| 91 RUNTIME_FUNCTION(Runtime_UnwindAndFindExceptionHandler) { | 98 RUNTIME_FUNCTION(Runtime_UnwindAndFindExceptionHandler) { |
| 92 SealHandleScope shs(isolate); | 99 SealHandleScope shs(isolate); |
| 93 DCHECK(args.length() == 0); | 100 DCHECK(args.length() == 0); |
| 94 return isolate->UnwindAndFindHandler(); | 101 return isolate->UnwindAndFindHandler(); |
| 95 } | 102 } |
| 96 | 103 |
| 97 | 104 |
| 98 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { | 105 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { |
| 99 SealHandleScope shs(isolate); | 106 SealHandleScope shs(isolate); |
| 100 DCHECK(args.length() == 0); | 107 DCHECK(args.length() == 0); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 } | 404 } |
| 398 | 405 |
| 399 | 406 |
| 400 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { | 407 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { |
| 401 HandleScope shs(isolate); | 408 HandleScope shs(isolate); |
| 402 return isolate->heap()->code_stub_exports_object(); | 409 return isolate->heap()->code_stub_exports_object(); |
| 403 } | 410 } |
| 404 | 411 |
| 405 } // namespace internal | 412 } // namespace internal |
| 406 } // namespace v8 | 413 } // namespace v8 |
| OLD | NEW |