• R/O
  • SSH
  • HTTPS

jpl: 提交


Commit MetaInfo

修订版925 (tree)
时间2020-02-12 07:03:53
作者jakobthomsen

Log Message

use return call-result

更改概述

差异

--- trunk/jpl_compiler_own_stack_and_heap(tree-closures-memory)/jpl_compiler.c (revision 924)
+++ trunk/jpl_compiler_own_stack_and_heap(tree-closures-memory)/jpl_compiler.c (revision 925)
@@ -39442,12 +39442,8 @@
3944239442 {
3944339443 /*parid_____*/*LOCAL_ACCESS(heap.data, 4LLU, 3LLU) = parseid(&/*c_________*/*access_heap(heap.data, *LOCAL_ACCESS(heap.data, 4LLU, 2LLU)));
3944439444 {
39445- uint64_t arg = 0;
39446- LOCAL_PUSH_MOVE(&heap, 4, &(heap.data[0].elem1)/*address of current closure*/, &arg);
39447- }
39448- {
3944939445 uint64_t arg = 0;;
39450- tree_push_move(&heap, 0LLU, &arg, &*LOCAL_ACCESS(heap.data, 5LLU, 3LLU));
39446+ tree_push_move(&heap, 0LLU, &arg, &*LOCAL_ACCESS(heap.data, 4LLU, 3LLU));
3945139447 {
3945239448 uint64_t arg1 = 0LLU;
3945339449 {
@@ -39456,7 +39452,7 @@
3945639452 };
3945739453 tree_push_move(&heap, 1LLU, &arg, &arg1);
3945839454 };
39459- *LOCAL_ACCESS(heap.data, 5LLU, 4LLU) = arg;
39455+ *access_heap(heap.data, *LOCAL_ACCESS(heap.data, 4LLU, 0LLU)) = arg;
3946039456 }
3946139457 state.addr = 18446744073709549349LLU; // 99999999aj'''''''''''''''
3946239458 break;
@@ -39463,10 +39459,6 @@
3946339459 }
3946439460 case 18446744073709549349LLU: // 99999999aj'''''''''''''''
3946539461 {
39466- swap(&*LOCAL_ACCESS(heap.data, 5LLU, 4LLU), &*access_heap(heap.data, *LOCAL_ACCESS(heap.data, 5LLU, 0LLU))); // result
39467- // variable elemdef___ new_______ goes out of scope
39468- // (uninitialized -> no destructor-call)
39469- (void)LOCAL_POP_MOVE(&heap, 5LLU, &(heap.data[0].elem1)/*address of current closure*/); // RELEASE reference new_______ at 5
3947039462 // variable u64 parid_____ goes out of scope
3947139463 // (uninitialized -> no destructor-call)
3947239464 (void)LOCAL_POP_MOVE(&heap, 4LLU, &(heap.data[0].elem1)/*address of current closure*/); // RELEASE reference parid_____ at 4
@@ -39594,15 +39586,11 @@
3959439586 {
3959539587 /*parid_____*/*LOCAL_ACCESS(heap.data, 5LLU, 4LLU) = parseid(&/*c_________*/*access_heap(heap.data, *LOCAL_ACCESS(heap.data, 5LLU, 2LLU)));
3959639588 {
39597- uint64_t arg = 0;
39598- LOCAL_PUSH_MOVE(&heap, 5, &(heap.data[0].elem1)/*address of current closure*/, &arg);
39599- }
39600- {
3960139589 uint64_t arg = 0;;
39602- tree_push_move(&heap, 0LLU, &arg, &*LOCAL_ACCESS(heap.data, 6LLU, 4LLU));
39590+ tree_push_move(&heap, 0LLU, &arg, &*LOCAL_ACCESS(heap.data, 5LLU, 4LLU));
3960339591 {
3960439592 uint64_t arg1 = 0LLU;
39605- tree_push_move(&heap, 0LLU, &arg1, &*LOCAL_ACCESS(heap.data, 6LLU, 3LLU));
39593+ tree_push_move(&heap, 0LLU, &arg1, &*LOCAL_ACCESS(heap.data, 5LLU, 3LLU));
3960639594 {
3960739595 uint64_t constridx = 2LLU; // typelist__
3960839596 arg1 = pair_move(&heap, &constridx, &arg1);
@@ -39609,7 +39597,7 @@
3960939597 };
3961039598 tree_push_move(&heap, 1LLU, &arg, &arg1);
3961139599 };
39612- *LOCAL_ACCESS(heap.data, 6LLU, 5LLU) = arg;
39600+ *access_heap(heap.data, *LOCAL_ACCESS(heap.data, 5LLU, 0LLU)) = arg;
3961339601 }
3961439602 state.addr = 18446744073709549339LLU; // 99999999a$'''''''''''''''
3961539603 break;
@@ -39616,10 +39604,6 @@
3961639604 }
3961739605 case 18446744073709549339LLU: // 99999999a$'''''''''''''''
3961839606 {
39619- swap(&*LOCAL_ACCESS(heap.data, 6LLU, 5LLU), &*access_heap(heap.data, *LOCAL_ACCESS(heap.data, 6LLU, 0LLU))); // result
39620- // variable elemdef___ new_______ goes out of scope
39621- // (uninitialized -> no destructor-call)
39622- (void)LOCAL_POP_MOVE(&heap, 6LLU, &(heap.data[0].elem1)/*address of current closure*/); // RELEASE reference new_______ at 6
3962339607 // variable u64 parid_____ goes out of scope
3962439608 // (uninitialized -> no destructor-call)
3962539609 (void)LOCAL_POP_MOVE(&heap, 5LLU, &(heap.data[0].elem1)/*address of current closure*/); // RELEASE reference parid_____ at 5
@@ -39699,15 +39683,11 @@
3969939683 LOCAL_PUSH_MOVE(&heap, 4, &(heap.data[0].elem1)/*address of current closure*/, &arg);
3970039684 }
3970139685 {
39702- uint64_t arg = 0;
39703- LOCAL_PUSH_MOVE(&heap, 5, &(heap.data[0].elem1)/*address of current closure*/, &arg);
39704- }
39705- {
3970639686 uint64_t arg = 0;;
39707- tree_push_move(&heap, 0LLU, &arg, &*LOCAL_ACCESS(heap.data, 6LLU, 3LLU));
39687+ tree_push_move(&heap, 0LLU, &arg, &*LOCAL_ACCESS(heap.data, 5LLU, 3LLU));
3970839688 {
3970939689 uint64_t arg1 = 0LLU;
39710- tree_push_move(&heap, 0LLU, &arg1, &*LOCAL_ACCESS(heap.data, 6LLU, 4LLU));
39690+ tree_push_move(&heap, 0LLU, &arg1, &*LOCAL_ACCESS(heap.data, 5LLU, 4LLU));
3971139691 {
3971239692 uint64_t constridx = 1LLU; // typename__
3971339693 arg1 = pair_move(&heap, &constridx, &arg1);
@@ -39714,7 +39694,7 @@
3971439694 };
3971539695 tree_push_move(&heap, 1LLU, &arg, &arg1);
3971639696 };
39717- *LOCAL_ACCESS(heap.data, 6LLU, 5LLU) = arg;
39697+ *access_heap(heap.data, *LOCAL_ACCESS(heap.data, 5LLU, 0LLU)) = arg;
3971839698 }
3971939699 state.addr = 18446744073709549331LLU; // 99999999aS'''''''''''''''
3972039700 break;
@@ -39721,10 +39701,6 @@
3972139701 }
3972239702 case 18446744073709549331LLU: // 99999999aS'''''''''''''''
3972339703 {
39724- swap(&*LOCAL_ACCESS(heap.data, 6LLU, 5LLU), &*access_heap(heap.data, *LOCAL_ACCESS(heap.data, 6LLU, 0LLU))); // result
39725- // variable elemdef___ new_______ goes out of scope
39726- // (uninitialized -> no destructor-call)
39727- (void)LOCAL_POP_MOVE(&heap, 6LLU, &(heap.data[0].elem1)/*address of current closure*/); // RELEASE reference new_______ at 6
3972839704 // variable u64 id________ goes out of scope
3972939705 // (uninitialized -> no destructor-call)
3973039706 (void)LOCAL_POP_MOVE(&heap, 5LLU, &(heap.data[0].elem1)/*address of current closure*/); // RELEASE reference id________ at 5
Show on old repository browser