| 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" |
| 11 #include "src/parser.h" | 11 #include "src/parser.h" |
| 12 #include "src/prettyprinter.h" | 12 #include "src/prettyprinter.h" |
| 13 #include "src/runtime/runtime-utils.h" | 13 #include "src/runtime/runtime-utils.h" |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 namespace internal { | 16 namespace internal { |
| 17 | 17 |
| 18 RUNTIME_FUNCTION(Runtime_CheckIsBootstrapping) { | 18 RUNTIME_FUNCTION(Runtime_CheckIsBootstrapping) { |
| 19 SealHandleScope shs(isolate); | 19 SealHandleScope shs(isolate); |
| 20 DCHECK(args.length() == 0); | 20 DCHECK(args.length() == 0); |
| 21 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); | 21 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); |
| 22 return isolate->heap()->undefined_value(); | 22 return isolate->heap()->undefined_value(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 | 25 |
| 26 RUNTIME_FUNCTION(Runtime_Throw) { | 26 RUNTIME_FUNCTION(Runtime_Throw) { |
| 27 HandleScope scope(isolate); | 27 HandleScope scope(isolate); |
| 28 DCHECK(args.length() == 1); | 28 DCHECK(args.length() == 1); |
| 29 | |
| 30 return isolate->Throw(args[0]); | 29 return isolate->Throw(args[0]); |
| 31 } | 30 } |
| 32 | 31 |
| 33 | 32 |
| 34 RUNTIME_FUNCTION(Runtime_ReThrow) { | 33 RUNTIME_FUNCTION(Runtime_ReThrow) { |
| 35 HandleScope scope(isolate); | 34 HandleScope scope(isolate); |
| 36 DCHECK(args.length() == 1); | 35 DCHECK(args.length() == 1); |
| 36 return isolate->ReThrow(args[0]); |
| 37 } |
| 37 | 38 |
| 38 return isolate->ReThrow(args[0]); | 39 |
| 40 RUNTIME_FUNCTION(Runtime_FindExceptionHandler) { |
| 41 SealHandleScope shs(isolate); |
| 42 DCHECK(args.length() == 0); |
| 43 return isolate->FindHandler(); |
| 39 } | 44 } |
| 40 | 45 |
| 41 | 46 |
| 42 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { | 47 RUNTIME_FUNCTION(Runtime_PromoteScheduledException) { |
| 43 SealHandleScope shs(isolate); | 48 SealHandleScope shs(isolate); |
| 44 DCHECK(args.length() == 0); | 49 DCHECK(args.length() == 0); |
| 45 return isolate->PromoteScheduledException(); | 50 return isolate->PromoteScheduledException(); |
| 46 } | 51 } |
| 47 | 52 |
| 48 | 53 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 | 321 |
| 317 RUNTIME_FUNCTION(RuntimeReference_GetFromCache) { | 322 RUNTIME_FUNCTION(RuntimeReference_GetFromCache) { |
| 318 HandleScope scope(isolate); | 323 HandleScope scope(isolate); |
| 319 DCHECK(args.length() == 2); | 324 DCHECK(args.length() == 2); |
| 320 CONVERT_SMI_ARG_CHECKED(id, 0); | 325 CONVERT_SMI_ARG_CHECKED(id, 0); |
| 321 args[0] = isolate->native_context()->jsfunction_result_caches()->get(id); | 326 args[0] = isolate->native_context()->jsfunction_result_caches()->get(id); |
| 322 return __RT_impl_Runtime_GetFromCache(args, isolate); | 327 return __RT_impl_Runtime_GetFromCache(args, isolate); |
| 323 } | 328 } |
| 324 } | 329 } |
| 325 } // namespace v8::internal | 330 } // namespace v8::internal |
| OLD | NEW |