Skip to content

Commit

Permalink
3.2.1: execution performace improved
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamarmas committed Feb 21, 2023
1 parent acf5528 commit fb3dadf
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 29 deletions.
6 changes: 4 additions & 2 deletions components/general/creator_uielto_toolbar_btngroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@
execute_instruction ()
{
// Google Analytics
creator_ga('execute', 'execute.instruction', 'execute.instruction');
if (run_program == false){
creator_ga('execute', 'execute.instruction', 'execute.instruction');
}

var ret = execute_instruction();

Expand All @@ -299,7 +301,7 @@
show_notification(ret.msg, ret.type);
}

if (ret.draw != null)
if ((ret.draw != null) && (run_program == false))
{
for (var i=0; i<ret.draw.space.length; i++) {
instructions[ret.draw.space[i]]._rowVariant = '';
Expand Down
2 changes: 1 addition & 1 deletion examples/RISCV/example12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

main:
# t1 = factorial(5)
li a0 5
li a0 100
jal x1 factorial

# print_int(t1)
Expand Down
1 change: 0 additions & 1 deletion js/creator_ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
}

if (typeof gtag !== "undefined") {

gtag('event',
action,
{
Expand Down
4 changes: 2 additions & 2 deletions js/creator_registerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function writeRegister ( value, indexComp, indexElem, register_type )
}

if (typeof window !== "undefined") {
btn_glow(architecture.components[indexComp].elements[indexElem].name, "Int") ;
btn_glow(architecture.components[indexComp].elements[indexElem].name, "Int") ;
}
}

Expand Down Expand Up @@ -189,7 +189,7 @@ function writeRegister ( value, indexComp, indexElem, register_type )
updateDouble(indexComp, indexElem);

if (typeof window !== "undefined") {
btn_glow(architecture.components[indexComp].elements[indexElem].name, "FP") ;
btn_glow(architecture.components[indexComp].elements[indexElem].name, "FP") ;
}
}

Expand Down
27 changes: 13 additions & 14 deletions js/creator_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,18 @@

function btn_glow ( btn_name, post_label )
{
var buttonDec = '#popoverValueContent' + btn_name + post_label ;
var buttonHex = '#popoverValueContent' + btn_name;

$(buttonDec).attr("style", "background-color:#c2c2c2;");
$(buttonHex).attr("style", "background-color:#c2c2c2;");
// $(buttonDec).attr("class", "btn btn-outline-secondary btn-block btn-sm modRegister");
// $(buttonHex).attr("class", "btn btn-outline-secondary btn-block btn-sm modRegister");

setTimeout(function() {
$(buttonDec).attr("style", "");
$(buttonHex).attr("style", "");
// $(buttonDec).attr("class", "btn btn-outline-secondary btn-block btn-sm registers");
// $(buttonHex).attr("class", "btn btn-outline-secondary btn-block btn-sm registers");
}, 500);
if (run_program == false)
{
var buttonDec = '#popoverValueContent' + btn_name + post_label ;
var buttonHex = '#popoverValueContent' + btn_name;

$(buttonDec).attr("style", "background-color:#c2c2c2;");
$(buttonHex).attr("style", "background-color:#c2c2c2;");

setTimeout(function() {
$(buttonDec).attr("style", "");
$(buttonHex).attr("style", "");
}, 500);
}
}

5 changes: 2 additions & 3 deletions js/min.creator_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ function register_value_serialize( architecture )
}

if (typeof gtag !== "undefined") {

gtag('event',
action,
{
Expand Down Expand Up @@ -1957,7 +1956,7 @@ function writeRegister ( value, indexComp, indexElem, register_type )
}

if (typeof window !== "undefined") {
btn_glow(architecture.components[indexComp].elements[indexElem].name, "Int") ;
btn_glow(architecture.components[indexComp].elements[indexElem].name, "Int") ;
}
}

Expand Down Expand Up @@ -1988,7 +1987,7 @@ function writeRegister ( value, indexComp, indexElem, register_type )
updateDouble(indexComp, indexElem);

if (typeof window !== "undefined") {
btn_glow(architecture.components[indexComp].elements[indexElem].name, "FP") ;
btn_glow(architecture.components[indexComp].elements[indexElem].name, "FP") ;
}
}

Expand Down
2 changes: 1 addition & 1 deletion js/min.creator_web.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"jshint": "^2.13.6",
"readline-sync": "^1.4.10",
"terser": "^5.16.4",
"yargs": "^17.7.0"
"yargs": "^17.7.1"
}
}

0 comments on commit fb3dadf

Please sign in to comment.