Chromium Code Reviews| 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 return isolate->Throw(args[0]); | 29 Object* ret = isolate->Throw(args[0]); |
|
Benedikt Meurer
2015/07/28 04:57:17
What is the motivation for this change?
| |
| 30 return ret; | |
| 30 } | 31 } |
| 31 | 32 |
| 32 | 33 |
| 33 RUNTIME_FUNCTION(Runtime_ReThrow) { | 34 RUNTIME_FUNCTION(Runtime_ReThrow) { |
| 34 HandleScope scope(isolate); | 35 HandleScope scope(isolate); |
| 35 DCHECK(args.length() == 1); | 36 DCHECK(args.length() == 1); |
| 36 return isolate->ReThrow(args[0]); | 37 return isolate->ReThrow(args[0]); |
| 37 } | 38 } |
| 38 | 39 |
| 39 | 40 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 470 } | 471 } |
| 471 | 472 |
| 472 | 473 |
| 473 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { | 474 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { |
| 474 HandleScope shs(isolate); | 475 HandleScope shs(isolate); |
| 475 return isolate->heap()->code_stub_exports_object(); | 476 return isolate->heap()->code_stub_exports_object(); |
| 476 } | 477 } |
| 477 | 478 |
| 478 } // namespace internal | 479 } // namespace internal |
| 479 } // namespace v8 | 480 } // namespace v8 |
| OLD | NEW |