From 5e13149a4dd32aabbb3b50c526a73bbf6ca9db3c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 8 Apr 2023 16:22:41 +0800 Subject: [PATCH] up --- run_profile.sh | 1 + src/vm.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/run_profile.sh b/run_profile.sh index d345e39c..652107c4 100644 --- a/run_profile.sh +++ b/run_profile.sh @@ -1,5 +1,6 @@ # THIS SCRIPT IS NOT WORKING clang++ -pg -O2 -std=c++17 -fno-rtti -stdlib=libc++ -Wall -o pocketpy src/main.cpp time ./pocketpy benchmarks/fib.py +mv benchmarks/gmon.out . gprof pocketpy gmon.out > gprof.txt rm gmon.out \ No newline at end of file diff --git a/src/vm.h b/src/vm.h index da085687..7b8439b9 100644 --- a/src/vm.h +++ b/src/vm.h @@ -601,7 +601,7 @@ inline Str VM::disassemble(CodeObject_ co){ case OP_LOAD_ATTR: case OP_LOAD_METHOD: case OP_STORE_ATTR: case OP_DELETE_ATTR: case OP_IMPORT_NAME: case OP_BEGIN_CLASS: case OP_DELETE_LOCAL: case OP_DELETE_GLOBAL: - argStr += " (" + co->names[byte.arg].str().escape(true) + ")"; + argStr += " (" + co->names[byte.arg].str() + ")"; break; case OP_BINARY_OP: argStr += " (" + BINARY_SPECIAL_METHODS[byte.arg].str() + ")";