-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added async stack inspection and traversal to hphpd
Debugger commands 'up','down' and 'variable' now operate on the async stack as well as the regular stack. If used in conjuction with 'where async' the awaitable dependency stack is traversed instead of the regular stack by the said commands. Reviewed By: @mikemag Differential Revision: D1034548
- Loading branch information
Showing
14 changed files
with
253 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?hh | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
|
||
async function gen1($a) { | ||
$v1 = "v1-gen1"; | ||
await RescheduleWaitHandle::Create(1, 1); | ||
return $a + 1; | ||
} | ||
|
||
async function gen2($a) { | ||
$v1 = "v1-gen2"; | ||
await RescheduleWaitHandle::Create(1, 1); | ||
$x = gen1($a)->join(); | ||
return $x; | ||
} | ||
|
||
async function genBar($a) { | ||
$v1 = "v1-genBar"; | ||
var_dump($a); | ||
return $a + 2; | ||
} | ||
|
||
async function genFoo($a) { | ||
$v1 = "v1-genFoo"; | ||
$a++; | ||
await GenArrayWaitHandle::Create( | ||
array( | ||
genBar($a), | ||
gen2($a + 2), | ||
gen2($a + 3) | ||
) | ||
); | ||
} | ||
|
||
function main($a) { | ||
genFoo($a)->join(); | ||
} | ||
|
||
main(42); |
Oops, something went wrong.