| 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 "src/api.h" | 5 #include "src/api.h" |
| 6 | 6 |
| 7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
| 8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
| 9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
| 10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
| (...skipping 2692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2703 i::Object* the_hole = isolate_->heap()->the_hole_value(); | 2703 i::Object* the_hole = isolate_->heap()->the_hole_value(); |
| 2704 exception_ = the_hole; | 2704 exception_ = the_hole; |
| 2705 message_obj_ = the_hole; | 2705 message_obj_ = the_hole; |
| 2706 } | 2706 } |
| 2707 | 2707 |
| 2708 | 2708 |
| 2709 void v8::TryCatch::SetVerbose(bool value) { | 2709 void v8::TryCatch::SetVerbose(bool value) { |
| 2710 is_verbose_ = value; | 2710 is_verbose_ = value; |
| 2711 } | 2711 } |
| 2712 | 2712 |
| 2713 bool v8::TryCatch::IsVerbose() const { |
| 2714 return is_verbose_; |
| 2715 } |
| 2716 |
| 2713 | 2717 |
| 2714 void v8::TryCatch::SetCaptureMessage(bool value) { | 2718 void v8::TryCatch::SetCaptureMessage(bool value) { |
| 2715 capture_message_ = value; | 2719 capture_message_ = value; |
| 2716 } | 2720 } |
| 2717 | 2721 |
| 2718 | 2722 |
| 2719 // --- M e s s a g e --- | 2723 // --- M e s s a g e --- |
| 2720 | 2724 |
| 2721 | 2725 |
| 2722 Local<String> Message::Get() const { | 2726 Local<String> Message::Get() const { |
| (...skipping 7744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10467 Address callback_address = | 10471 Address callback_address = |
| 10468 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10472 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 10469 VMState<EXTERNAL> state(isolate); | 10473 VMState<EXTERNAL> state(isolate); |
| 10470 ExternalCallbackScope call_scope(isolate, callback_address); | 10474 ExternalCallbackScope call_scope(isolate, callback_address); |
| 10471 callback(info); | 10475 callback(info); |
| 10472 } | 10476 } |
| 10473 | 10477 |
| 10474 | 10478 |
| 10475 } // namespace internal | 10479 } // namespace internal |
| 10476 } // namespace v8 | 10480 } // namespace v8 |
| OLD | NEW |