美文网首页
2018-03-29

2018-03-29

作者: 韦恩老爷 | 来源:发表于2018-04-19 10:27 被阅读0次

js_Ast structure

struct js_Ast
{
    enum js_AstType type;
    int line;
    js_Ast *parent, *a, *b, *c, *d;
    double number;
    const char *string;
    js_JumpList *jumps; /* list of break/continue jumps to patch */
    int casejump; /* for switch case clauses */
    js_Ast *gcnext; /* next in alloc list */
};

seems that it is a pure ast tree, but i didnt learn it well when i was at College. There is a website out there to see it clearly. This picture shows it very well.
http://esprima.org/demo/parse.html

图片1.png
when i call read(), it will analyse it carefully, and finally it will become a AST parse list like this. body's type is a AST_LIST, body->a's type is a EXP_CALL, and body->a->a's type is a EXP_IDENTIFIER and it represents string read
图片2.png

error types in JS compile

https://docs.microsoft.com/en-us/scripting/javascript/advanced/strict-mode-javascript
every type of javascript error can be found here, it developped by Microsoft.

the difference between debug and release...

When i compiled it into a debug version, it makes an 8 bytes hole between the buffer and the stack canary...
But when i try to compile it into a release version, there is no such hole... Its ... amazing...
I checked the Makefile and found that the debug version only made an -g in the CFLAGS, and in the release version it added

-Os all compile optimizaion
-Wl set the link library
-s delete the debug symbols and function names

相关文章

  • 策略31

    603918 - 16.33 - 16.33 - c31 - 2018-03-29 09:35:29 - 17.0...

  • 2018-03-29

    2018-03-26 晋先森 关注 2018-03-29 17:44 · 字数 26074 · 阅读 1 · 日记...

  • 2018-03-29

    2018-03-29 180 戴师傅 简书作者 2018.03.29 21:27 打开App 2018-03-29...

  • 今日无所言

    2018-03-29 星期四 天气 晴 不想写东西,没有读书,没有惊喜的工作日

  • selenium+python处理警示框

    author="jolting" date="2018-03-29" 执行同事的自动化用例时,碰到alter的没处...

  • Jason外贸旅途-西班牙语(3)

    Jason外贸旅途-西班牙语(3) 2018-03-29原创公众号:Jason外贸旅途 Jason外贸旅途-西班牙...

  • 2018-1太平金科新活力:五湖四海组第三天培训日记

    不积跬步,无以至千里;不积小流,无以成江海。——荀子 时间:2018-03-29 -----------...

  • 打卡2018.3.30

    thy123456 2018-03-29 21:23 · 字数 215 · 阅读 0 · 日记本 姓名:田宏宇~公...

  • 活在当下

    2018-03-29 简书作者: Michael 六项精进学习 姓名:Michael 部门:业务部 组别:待定 【...

  • Vue原理浅析^_^

    title: Vuedate: 2018-03-29 13:39:09tags: Vue2是一个典型的MVVM框架...

网友评论

      本文标题:2018-03-29

      本文链接:https://www.haomeiwen.com/subject/nquvcftx.html