History

Remove 'using namespace' statements from all but the execution table file.

arr committed 9 years ago

Commit 2519a931 parent 68d4d6931 files · +725 −426Browse files

Showing the changes to src/vm/vm_exception_handler.cpp (1 of 31 files). Show all

Unified · Split

src/vm/vm_exception_handler.cpp+10−6
@@ -10,10 +10,14 @@ · 9 unmodified lines
1010 #include <exceptions.h>
1111 #include <debug.h>
1212
13−using namespace disvm;
14−using namespace disvm::runtime;
13+using disvm::debug::component_trace_t;
14+using disvm::debug::log_level_t;
1515
16−std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_exception_handler(
16+using disvm::runtime::vm_pc_t;
17+using disvm::runtime::vm_frame_t;
18+using disvm::runtime::handler_entry_t;
19+
20+std::tuple<const handler_entry_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_exception_handler(
1721 const vm_stack_t &stack,
1822 const vm_module_ref_t &faulting_module,
1923 const vm_pc_t faulting_pc,
@@ -26,7 +30,7 @@ std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_except · 6 unmodified lines
2630
2731 while (current_frame != nullptr)
2832 {
29− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "begin: handler: %d", unwind_depth);
33+ disvm::debug::log_msg(component_trace_t::exception, log_level_t::debug, "begin: handler: %d", unwind_depth);
3034
3135 auto &handler_section = current_module->module->handler_section;
3236
@@ -42,12 +46,12 @@ std::tuple<const handler_t *, vm_frame_t *, vm_pc_t> disvm::runtime::find_except · 9 unmodified lines
4246 auto exception_name = exception.name.get();
4347 if (exception_id.compare_to(exception_name) == 0)
4448 {
45− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: match: %d", unwind_depth);
49+ disvm::debug::log_msg(component_trace_t::exception, log_level_t::debug, "end: handler: match: %d", unwind_depth);
4650 return std::make_tuple(&handler, current_frame, exception.pc);
4751 }
4852 else if (exception_name == nullptr && exception.pc != runtime_constants::invalid_program_counter)
4953 {
50− debug::log_msg(debug::component_trace_t::exception, debug::log_level_t::debug, "end: handler: fallback: %d", unwind_depth);
54+ disvm::debug::log_msg(component_trace_t::exception, log_level_t::debug, "end: handler: fallback: %d", unwind_depth);
5155 return std::make_tuple(&handler, current_frame, exception.pc);
5256 }
5357 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t