{"action":"created","issue":{"url":"https://api.github.com/repos/matsumotory/ngx_mruby/issues/399","repository_url":"https://api.github.com/repos/matsumotory/ngx_mruby","labels_url":"https://api.github.com/repos/matsumotory/ngx_mruby/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/matsumotory/ngx_mruby/issues/399/comments","events_url":"https://api.github.com/repos/matsumotory/ngx_mruby/issues/399/events","html_url":"https://github.com/matsumotory/ngx_mruby/pull/399","id":377700975,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NTgwNDYy","number":399,"title":"Print generated code for debug if NGX_MRUBY_IREP_DEBUG is defined.","user":{"login":"yyamano","id":108492,"node_id":"MDQ6VXNlcjEwODQ5Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/108492?v=4","gravatar_id":"","url":"https://api.github.com/users/yyamano","html_url":"https://github.com/yyamano","followers_url":"https://api.github.com/users/yyamano/followers","following_url":"https://api.github.com/users/yyamano/following{/other_user}","gists_url":"https://api.github.com/users/yyamano/gists{/gist_id}","starred_url":"https://api.github.com/users/yyamano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyamano/subscriptions","organizations_url":"https://api.github.com/users/yyamano/orgs","repos_url":"https://api.github.com/users/yyamano/repos","events_url":"https://api.github.com/users/yyamano/events{/privacy}","received_events_url":"https://api.github.com/users/yyamano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-06T05:45:24Z","updated_at":"2018-11-06T06:08:15Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/matsumotory/ngx_mruby/pulls/399","html_url":"https://github.com/matsumotory/ngx_mruby/pull/399","diff_url":"https://github.com/matsumotory/ngx_mruby/pull/399.diff","patch_url":"https://github.com/matsumotory/ngx_mruby/pull/399.patch"},"body":"With -DNGX_MRUBY_IREP_DEBUG, you will see the following generated code information for debug.\r\n\r\n```\r\n00001 NODE_SCOPE:\r\n00001   NODE_BEGIN:\r\n00001     NODE_CALL(.):\r\n00001       NODE_CONST Nginx\r\n00001       method='return' (1460)\r\n00001       args:\r\n00001         NODE_COLON2:\r\n00001           NODE_CONST Nginx\r\n00001           ::OK\r\nirep 0xfd9f90 nregs=4 nlocals=1 pools=0 syms=3 reps=0\r\nfile: INLINE CODE\r\n    1 000 OP_GETCONST\tR1\t:Nginx\r\n    1 003 OP_GETCONST\tR2\t:Nginx\r\n    1 006 OP_GETMCNST\tR2\tR2::OK\r\n    1 009 OP_SEND\tR1\t:return\t1\r\n    1 013 OP_RETURN\tR1\t\t\r\n    1 015 OP_STOP\r\n\r\n00002 NODE_SCOPE:\r\n00002   NODE_BEGIN:\r\n00002     NODE_CALL(.):\r\n00002       NODE_CONST Nginx\r\n00002       method='rputs' (1462)\r\n00002       args:\r\n00002         NODE_STR \"OK\" len 2\r\n00003     NODE_CALL(.):\r\n00003       NODE_CONST Nginx\r\n00003       method='return' (1460)\r\n00003       args:\r\n00003         NODE_INT 200 base 10\r\nirep 0xfda0f0 nregs=4 nlocals=1 pools=1 syms=3 reps=0\r\nfile: INLINE CODE\r\n    2 000 OP_GETCONST\tR1\t:Nginx\r\n    2 003 OP_STRING\tR2\tL(0)\t; \"OK\"\r\n    2 006 OP_SEND\tR1\t:rputs\t1\r\n    3 010 OP_GETCONST\tR1\t:Nginx\r\n    3 013 OP_LOADI\tR2\t200\t\r\n    3 016 OP_SEND\tR1\t:return\t1\r\n    3 020 OP_RETURN\tR1\t\t\r\n    3 022 OP_STOP\r\n```\r\n\r\n## Pull-Request Check List\r\n\r\n- [x ] Add patches into `src/`.\r\n- [ ] Add test into `test/`. Please see about [test docs](https://github.com/matsumotory/ngx_mruby/tree/master/docs/test).\r\n- [ ] Add docs into `docs/` if you change the features such as [build system](https://github.com/matsumotory/ngx_mruby/tree/master/docs/install), [Ruby methods, class](https://github.com/matsumotory/ngx_mruby/tree/master/docs/class_and_method) and [nginx directives](https://github.com/matsumotory/ngx_mruby/tree/master/docs/directives).\r\n"},"comment":{"url":"https://api.github.com/repos/matsumotory/ngx_mruby/issues/comments/436141629","html_url":"https://github.com/matsumotory/ngx_mruby/pull/399#issuecomment-436141629","issue_url":"https://api.github.com/repos/matsumotory/ngx_mruby/issues/399","id":436141629,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjE0MTYyOQ==","user":{"login":"matsumotory","id":648437,"node_id":"MDQ6VXNlcjY0ODQzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/648437?v=4","gravatar_id":"","url":"https://api.github.com/users/matsumotory","html_url":"https://github.com/matsumotory","followers_url":"https://api.github.com/users/matsumotory/followers","following_url":"https://api.github.com/users/matsumotory/following{/other_user}","gists_url":"https://api.github.com/users/matsumotory/gists{/gist_id}","starred_url":"https://api.github.com/users/matsumotory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsumotory/subscriptions","organizations_url":"https://api.github.com/users/matsumotory/orgs","repos_url":"https://api.github.com/users/matsumotory/repos","events_url":"https://api.github.com/users/matsumotory/events{/privacy}","received_events_url":"https://api.github.com/users/matsumotory/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T06:08:15Z","updated_at":"2018-11-06T06:08:15Z","author_association":"OWNER","body":"It's useful! Thanks a lot."}}
{"actor":{"display_login":"matsumotory"}}