| 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/v8.h" | 5 #include "src/v8.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/debug.h" | 9 #include "src/debug.h" |
| 10 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 RUNTIME_FUNCTION(Runtime_ReThrow) { | 33 RUNTIME_FUNCTION(Runtime_ReThrow) { |
| 34 HandleScope scope(isolate); | 34 HandleScope scope(isolate); |
| 35 DCHECK(args.length() == 1); | 35 DCHECK(args.length() == 1); |
| 36 return isolate->ReThrow(args[0]); | 36 return isolate->ReThrow(args[0]); |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 RUNTIME_FUNCTION(Runtime_FindExceptionHandler) { | 40 RUNTIME_FUNCTION(Runtime_UnwindAndFindExceptionHandler) { |
| 41 SealHandleScope shs(isolate); | 41 SealHandleScope shs(isolate); |
| 42 DCHECK(args.length() == 0); | 42 DCHECK(args.length() == 0); |
| 43 return isolate->FindHandler(); | 43 return isolate->UnwindAndFindHandler(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { | 47 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { |
| 48 SealHandleScope shs(isolate); | 48 SealHandleScope shs(isolate); |
| 49 DCHECK(args.length() == 0); | 49 DCHECK(args.length() == 0); |
| 50 return isolate->PromoteScheduledException(); | 50 return isolate->PromoteScheduledException(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 | 53 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 return args[0]; | 401 return args[0]; |
| 402 } | 402 } |
| 403 | 403 |
| 404 | 404 |
| 405 RUNTIME_FUNCTION(Runtime_HarmonyToString) { | 405 RUNTIME_FUNCTION(Runtime_HarmonyToString) { |
| 406 // TODO(caitp): Delete this runtime method when removing --harmony-tostring | 406 // TODO(caitp): Delete this runtime method when removing --harmony-tostring |
| 407 return isolate->heap()->ToBoolean(FLAG_harmony_tostring); | 407 return isolate->heap()->ToBoolean(FLAG_harmony_tostring); |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 } // namespace v8::internal | 410 } // namespace v8::internal |
| OLD | NEW |