开始firefox os内部实现的分析:
1. B2G startup 过程:使用gdb进行跟踪
2. b2g的架构分析: webidl, ipdl, xpcom
a. do_CreateInstance ; nsCreateInstanceByCID, nsCreateInstanceByContractID
b. do_GetService :nsGetServiceByContractIDWithError
c. do_QueryInterface : nsQueryInterface, nsQueryInterfaceWithError
3. c++:函数模板