|  | Make built-ins strict mode conforming, and support a --use-strict flag.
* Turned all uses of 'const' into 'var'.
* Turned all uses of local 'function' into 'var'.
* Added a couple of missing toplevel 'var' declarations.
One consequence is that the properties on the builtin object  are no longer
non-writable, and I had to adapt one test. Is that a problem?
Unfortunately, we cannot actually switch the library scripts to strict mode
by default, because that makes observable things like poisoned .caller properties
for library functions.
Also removed dead flag code in Compiler::Compile.
R=yangguo@chromium.org 
BUG=
TEST=
Committed: https://code.google.com/p/v8/source/detail?r=10758
      Total comments: 4
      
     
  
   
    
  
  
    
      |  | Unified diffs | Side-by-side diffs | Delta from patch set | Stats (+154 lines, -156 lines) | Patch |  
        |  | M | include/v8.h | View |  | 1 chunk | +1 line, -1 line | 0 comments | Download |  
        |  | M | src/apinatives.js | View |  | 1 chunk | +2 lines, -2 lines | 0 comments | Download |  
        |  | M | src/array.js | View |  | 9 chunks | +13 lines, -13 lines | 0 comments | Download |  
        |  | M | src/collection.js | View |  | 1 chunk | +4 lines, -3 lines | 0 comments | Download |  
        |  | M | src/compiler.cc | View |  | 2 chunks | +1 line, -7 lines | 0 comments | Download |  
        |  | M | src/d8.js | View |  | 7 chunks | +13 lines, -11 lines | 0 comments | Download |  
        |  | M | src/date.js | View |  | 1 chunk | +2 lines, -3 lines | 0 comments | Download |  
        |  | M | src/debug-debugger.js | View |  | 1 chunk | +3 lines, -3 lines | 0 comments | Download |  
        |  | M | src/flag-definitions.h | View |  | 1 chunk | +3 lines, -1 line | 0 comments | Download |  
        |  | M | src/math.js | View |  | 1 chunk | +4 lines, -4 lines | 0 comments | Download |  
        |  | M | src/messages.js | View |  | 8 chunks | +14 lines, -13 lines | 0 comments | Download |  
        |  | M | src/mirror-debugger.js | View | 1 | 5 chunks | +42 lines, -42 lines | 0 comments | Download |  
        |  | M | src/proxy.js | View |  | 1 chunk | +2 lines, -0 lines | 0 comments | Download |  
        |  | M | src/regexp.js | View |  | 4 chunks | +8 lines, -8 lines | 0 comments | Download |  
        |  | M | src/runtime.js | View |  | 1 chunk | +10 lines, -10 lines | 0 comments | Download |  
        |  | M | src/string.js | View |  | 1 chunk | +2 lines, -2 lines | 0 comments | Download |  
        |  | M | src/uri.js | View |  | 7 chunks | +7 lines, -7 lines | 0 comments | Download |  
        |  | M | src/v8natives.js | View |  | 1 chunk | +9 lines, -9 lines | 0 comments | Download |  
        |  | M | test/cctest/test-debug.cc | View |  | 7 chunks | +13 lines, -13 lines | 0 comments | Download |  
        |  | M | test/mjsunit/builtins.js | View |  | 2 chunks | +1 line, -4 lines | 0 comments | Download |  
    Total messages: 3 (0 generated)
     |