{"action":"opened","number":386,"pull_request":{"url":"https://api.github.com/repos/pegjs/pegjs/pulls/386","id":49818903,"html_url":"https://github.com/pegjs/pegjs/pull/386","diff_url":"https://github.com/pegjs/pegjs/pull/386.diff","patch_url":"https://github.com/pegjs/pegjs/pull/386.patch","issue_url":"https://api.github.com/repos/pegjs/pegjs/issues/386","number":386,"state":"open","locked":false,"title":"Create a byte code optimiser","user":{"login":"pwagland","id":748033,"avatar_url":"https://avatars.githubusercontent.com/u/748033?v=3","gravatar_id":"","url":"https://api.github.com/users/pwagland","html_url":"https://github.com/pwagland","followers_url":"https://api.github.com/users/pwagland/followers","following_url":"https://api.github.com/users/pwagland/following{/other_user}","gists_url":"https://api.github.com/users/pwagland/gists{/gist_id}","starred_url":"https://api.github.com/users/pwagland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwagland/subscriptions","organizations_url":"https://api.github.com/users/pwagland/orgs","repos_url":"https://api.github.com/users/pwagland/repos","events_url":"https://api.github.com/users/pwagland/events{/privacy}","received_events_url":"https://api.github.com/users/pwagland/received_events","type":"User","site_admin":false},"body":"Add the first stab at creating a byte code optimiser. This will optimise out if statements that it can determine will always be true. This typically happens after an option block, since the the stack pointer is set to 0 if it is in error, and the next statement typically checks for error. That check, and the else branch, is now elided.","created_at":"2015-11-05T12:41:25Z","updated_at":"2015-11-05T12:41:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pegjs/pegjs/pulls/386/commits","review_comments_url":"https://api.github.com/repos/pegjs/pegjs/pulls/386/comments","review_comment_url":"https://api.github.com/repos/pegjs/pegjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pegjs/pegjs/issues/386/comments","statuses_url":"https://api.github.com/repos/pegjs/pegjs/statuses/d07c033b0a25936ebb6acfb62b711290c0eb63f5","head":{"label":"pwagland:master","ref":"master","sha":"d07c033b0a25936ebb6acfb62b711290c0eb63f5","user":{"login":"pwagland","id":748033,"avatar_url":"https://avatars.githubusercontent.com/u/748033?v=3","gravatar_id":"","url":"https://api.github.com/users/pwagland","html_url":"https://github.com/pwagland","followers_url":"https://api.github.com/users/pwagland/followers","following_url":"https://api.github.com/users/pwagland/following{/other_user}","gists_url":"https://api.github.com/users/pwagland/gists{/gist_id}","starred_url":"https://api.github.com/users/pwagland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwagland/subscriptions","organizations_url":"https://api.github.com/users/pwagland/orgs","repos_url":"https://api.github.com/users/pwagland/repos","events_url":"https://api.github.com/users/pwagland/events{/privacy}","received_events_url":"https://api.github.com/users/pwagland/received_events","type":"User","site_admin":false},"repo":{"id":44929009,"name":"pegjs","full_name":"pwagland/pegjs","owner":{"login":"pwagland","id":748033,"avatar_url":"https://avatars.githubusercontent.com/u/748033?v=3","gravatar_id":"","url":"https://api.github.com/users/pwagland","html_url":"https://github.com/pwagland","followers_url":"https://api.github.com/users/pwagland/followers","following_url":"https://api.github.com/users/pwagland/following{/other_user}","gists_url":"https://api.github.com/users/pwagland/gists{/gist_id}","starred_url":"https://api.github.com/users/pwagland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwagland/subscriptions","organizations_url":"https://api.github.com/users/pwagland/orgs","repos_url":"https://api.github.com/users/pwagland/repos","events_url":"https://api.github.com/users/pwagland/events{/privacy}","received_events_url":"https://api.github.com/users/pwagland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwagland/pegjs","description":"PEG.js: Parser generator for JavaScript","fork":true,"url":"https://api.github.com/repos/pwagland/pegjs","forks_url":"https://api.github.com/repos/pwagland/pegjs/forks","keys_url":"https://api.github.com/repos/pwagland/pegjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwagland/pegjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwagland/pegjs/teams","hooks_url":"https://api.github.com/repos/pwagland/pegjs/hooks","issue_events_url":"https://api.github.com/repos/pwagland/pegjs/issues/events{/number}","events_url":"https://api.github.com/repos/pwagland/pegjs/events","assignees_url":"https://api.github.com/repos/pwagland/pegjs/assignees{/user}","branches_url":"https://api.github.com/repos/pwagland/pegjs/branches{/branch}","tags_url":"https://api.github.com/repos/pwagland/pegjs/tags","blobs_url":"https://api.github.com/repos/pwagland/pegjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwagland/pegjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwagland/pegjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwagland/pegjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwagland/pegjs/statuses/{sha}","languages_url":"https://api.github.com/repos/pwagland/pegjs/languages","stargazers_url":"https://api.github.com/repos/pwagland/pegjs/stargazers","contributors_url":"https://api.github.com/repos/pwagland/pegjs/contributors","subscribers_url":"https://api.github.com/repos/pwagland/pegjs/subscribers","subscription_url":"https://api.github.com/repos/pwagland/pegjs/subscription","commits_url":"https://api.github.com/repos/pwagland/pegjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwagland/pegjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwagland/pegjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwagland/pegjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwagland/pegjs/contents/{+path}","compare_url":"https://api.github.com/repos/pwagland/pegjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwagland/pegjs/merges","archive_url":"https://api.github.com/repos/pwagland/pegjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwagland/pegjs/downloads","issues_url":"https://api.github.com/repos/pwagland/pegjs/issues{/number}","pulls_url":"https://api.github.com/repos/pwagland/pegjs/pulls{/number}","milestones_url":"https://api.github.com/repos/pwagland/pegjs/milestones{/number}","notifications_url":"https://api.github.com/repos/pwagland/pegjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwagland/pegjs/labels{/name}","releases_url":"https://api.github.com/repos/pwagland/pegjs/releases{/id}","created_at":"2015-10-25T20:46:37Z","updated_at":"2015-10-25T20:46:38Z","pushed_at":"2015-11-05T12:38:04Z","git_url":"git://github.com/pwagland/pegjs.git","ssh_url":"git@github.com:pwagland/pegjs.git","clone_url":"https://github.com/pwagland/pegjs.git","svn_url":"https://github.com/pwagland/pegjs","homepage":"http://pegjs.org/","size":5589,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pegjs:master","ref":"master","sha":"972cafbee078acd90833f7566f9257e123048844","user":{"login":"pegjs","id":9988648,"avatar_url":"https://avatars.githubusercontent.com/u/9988648?v=3","gravatar_id":"","url":"https://api.github.com/users/pegjs","html_url":"https://github.com/pegjs","followers_url":"https://api.github.com/users/pegjs/followers","following_url":"https://api.github.com/users/pegjs/following{/other_user}","gists_url":"https://api.github.com/users/pegjs/gists{/gist_id}","starred_url":"https://api.github.com/users/pegjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pegjs/subscriptions","organizations_url":"https://api.github.com/users/pegjs/orgs","repos_url":"https://api.github.com/users/pegjs/repos","events_url":"https://api.github.com/users/pegjs/events{/privacy}","received_events_url":"https://api.github.com/users/pegjs/received_events","type":"Organization","site_admin":false},"repo":{"id":602604,"name":"pegjs","full_name":"pegjs/pegjs","owner":{"login":"pegjs","id":9988648,"avatar_url":"https://avatars.githubusercontent.com/u/9988648?v=3","gravatar_id":"","url":"https://api.github.com/users/pegjs","html_url":"https://github.com/pegjs","followers_url":"https://api.github.com/users/pegjs/followers","following_url":"https://api.github.com/users/pegjs/following{/other_user}","gists_url":"https://api.github.com/users/pegjs/gists{/gist_id}","starred_url":"https://api.github.com/users/pegjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pegjs/subscriptions","organizations_url":"https://api.github.com/users/pegjs/orgs","repos_url":"https://api.github.com/users/pegjs/repos","events_url":"https://api.github.com/users/pegjs/events{/privacy}","received_events_url":"https://api.github.com/users/pegjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pegjs/pegjs","description":"PEG.js: Parser generator for JavaScript","fork":false,"url":"https://api.github.com/repos/pegjs/pegjs","forks_url":"https://api.github.com/repos/pegjs/pegjs/forks","keys_url":"https://api.github.com/repos/pegjs/pegjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pegjs/pegjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pegjs/pegjs/teams","hooks_url":"https://api.github.com/repos/pegjs/pegjs/hooks","issue_events_url":"https://api.github.com/repos/pegjs/pegjs/issues/events{/number}","events_url":"https://api.github.com/repos/pegjs/pegjs/events","assignees_url":"https://api.github.com/repos/pegjs/pegjs/assignees{/user}","branches_url":"https://api.github.com/repos/pegjs/pegjs/branches{/branch}","tags_url":"https://api.github.com/repos/pegjs/pegjs/tags","blobs_url":"https://api.github.com/repos/pegjs/pegjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pegjs/pegjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pegjs/pegjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/pegjs/pegjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pegjs/pegjs/statuses/{sha}","languages_url":"https://api.github.com/repos/pegjs/pegjs/languages","stargazers_url":"https://api.github.com/repos/pegjs/pegjs/stargazers","contributors_url":"https://api.github.com/repos/pegjs/pegjs/contributors","subscribers_url":"https://api.github.com/repos/pegjs/pegjs/subscribers","subscription_url":"https://api.github.com/repos/pegjs/pegjs/subscription","commits_url":"https://api.github.com/repos/pegjs/pegjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/pegjs/pegjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/pegjs/pegjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/pegjs/pegjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/pegjs/pegjs/contents/{+path}","compare_url":"https://api.github.com/repos/pegjs/pegjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pegjs/pegjs/merges","archive_url":"https://api.github.com/repos/pegjs/pegjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pegjs/pegjs/downloads","issues_url":"https://api.github.com/repos/pegjs/pegjs/issues{/number}","pulls_url":"https://api.github.com/repos/pegjs/pegjs/pulls{/number}","milestones_url":"https://api.github.com/repos/pegjs/pegjs/milestones{/number}","notifications_url":"https://api.github.com/repos/pegjs/pegjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pegjs/pegjs/labels{/name}","releases_url":"https://api.github.com/repos/pegjs/pegjs/releases{/id}","created_at":"2010-04-09T15:27:18Z","updated_at":"2015-11-05T05:16:36Z","pushed_at":"2015-11-05T12:41:25Z","git_url":"git://github.com/pegjs/pegjs.git","ssh_url":"git@github.com:pegjs/pegjs.git","clone_url":"https://github.com/pegjs/pegjs.git","svn_url":"https://github.com/pegjs/pegjs","homepage":"http://pegjs.org/","size":5589,"stargazers_count":1558,"watchers_count":1558,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":213,"mirror_url":null,"open_issues_count":52,"forks":213,"open_issues":52,"watchers":1558,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pegjs/pegjs/pulls/386"},"html":{"href":"https://github.com/pegjs/pegjs/pull/386"},"issue":{"href":"https://api.github.com/repos/pegjs/pegjs/issues/386"},"comments":{"href":"https://api.github.com/repos/pegjs/pegjs/issues/386/comments"},"review_comments":{"href":"https://api.github.com/repos/pegjs/pegjs/pulls/386/comments"},"review_comment":{"href":"https://api.github.com/repos/pegjs/pegjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pegjs/pegjs/pulls/386/commits"},"statuses":{"href":"https://api.github.com/repos/pegjs/pegjs/statuses/d07c033b0a25936ebb6acfb62b711290c0eb63f5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":371,"deletions":0,"changed_files":2}}