| 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 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2706 i::Object* the_hole = isolate_->heap()->the_hole_value(); | 2706 i::Object* the_hole = isolate_->heap()->the_hole_value(); |
| 2707 exception_ = the_hole; | 2707 exception_ = the_hole; |
| 2708 message_obj_ = the_hole; | 2708 message_obj_ = the_hole; |
| 2709 } | 2709 } |
| 2710 | 2710 |
| 2711 | 2711 |
| 2712 void v8::TryCatch::SetVerbose(bool value) { | 2712 void v8::TryCatch::SetVerbose(bool value) { |
| 2713 is_verbose_ = value; | 2713 is_verbose_ = value; |
| 2714 } | 2714 } |
| 2715 | 2715 |
| 2716 bool v8::TryCatch::IsVerbose() const { | 2716 bool v8::TryCatch::IsVerbose() const { return is_verbose_; } |
| 2717 return is_verbose_; | |
| 2718 } | |
| 2719 | |
| 2720 | 2717 |
| 2721 void v8::TryCatch::SetCaptureMessage(bool value) { | 2718 void v8::TryCatch::SetCaptureMessage(bool value) { |
| 2722 capture_message_ = value; | 2719 capture_message_ = value; |
| 2723 } | 2720 } |
| 2724 | 2721 |
| 2725 | 2722 |
| 2726 // --- M e s s a g e --- | 2723 // --- M e s s a g e --- |
| 2727 | 2724 |
| 2728 | 2725 |
| 2729 Local<String> Message::Get() const { | 2726 Local<String> Message::Get() const { |
| (...skipping 7745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10475 Address callback_address = | 10472 Address callback_address = |
| 10476 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10473 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 10477 VMState<EXTERNAL> state(isolate); | 10474 VMState<EXTERNAL> state(isolate); |
| 10478 ExternalCallbackScope call_scope(isolate, callback_address); | 10475 ExternalCallbackScope call_scope(isolate, callback_address); |
| 10479 callback(info); | 10476 callback(info); |
| 10480 } | 10477 } |
| 10481 | 10478 |
| 10482 | 10479 |
| 10483 } // namespace internal | 10480 } // namespace internal |
| 10484 } // namespace v8 | 10481 } // namespace v8 |
| OLD | NEW |