therubyracer 0.6.3 → 0.7.0.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/Rakefile +10 -9
- data/ext/v8/callbacks.cpp +15 -8
- data/ext/v8/converters.cpp +7 -8
- data/ext/v8/converters.h +0 -2
- data/ext/v8/extconf.rb +2 -0
- data/ext/v8/rr.cpp +169 -0
- data/ext/v8/rr.h +34 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/AUTHORS +8 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/ChangeLog +198 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/LICENSE +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/SConstruct +152 -38
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/include/v8-debug.h +52 -4
- data/ext/v8/upstream/2.1.10/include/v8-profiler.h +176 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/include/v8.h +227 -48
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/SConscript +60 -10
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/accessors.cc +5 -39
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/accessors.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/allocation.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/allocation.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/api.cc +477 -57
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/api.h +8 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/apinatives.js +1 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/apiutils.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arguments.h +5 -6
- data/ext/v8/upstream/{2.0.6/src/arm/assembler-thumb2-inl.h → 2.1.10/src/arm/assembler-arm-inl.h} +42 -27
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/assembler-arm.cc +430 -216
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/assembler-arm.h +199 -110
- data/ext/v8/upstream/{2.0.6/src/arm/assembler-arm-inl.h → 2.1.10/src/arm/assembler-thumb2-inl.h} +4 -18
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/assembler-thumb2.cc +142 -85
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/assembler-thumb2.h +18 -9
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/builtins-arm.cc +127 -87
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/codegen-arm-inl.h +3 -5
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/codegen-arm.cc +4634 -1427
- data/ext/v8/upstream/2.1.10/src/arm/codegen-arm.h +946 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/constants-arm.cc +21 -3
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/constants-arm.h +39 -13
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/cpu-arm.cc +9 -3
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/debug-arm.cc +34 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/disasm-arm.cc +262 -117
- data/ext/v8/upstream/2.1.10/src/arm/fast-codegen-arm.cc +238 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/frames-arm.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/frames-arm.h +0 -0
- data/ext/v8/upstream/{2.0.6/src/arm/fast-codegen-arm.cc → 2.1.10/src/arm/full-codegen-arm.cc} +453 -283
- data/ext/v8/upstream/2.1.10/src/arm/ic-arm.cc +1833 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/jump-target-arm.cc +3 -29
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/macro-assembler-arm.cc +564 -104
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/macro-assembler-arm.h +255 -46
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/regexp-macro-assembler-arm.cc +78 -104
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/regexp-macro-assembler-arm.h +6 -22
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/register-allocator-arm-inl.h +0 -3
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/register-allocator-arm.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/register-allocator-arm.h +2 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/simulator-arm.cc +557 -180
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/simulator-arm.h +52 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/arm/stub-cache-arm.cc +904 -240
- data/ext/v8/upstream/2.1.10/src/arm/virtual-frame-arm.cc +668 -0
- data/ext/v8/upstream/2.1.10/src/arm/virtual-frame-arm.h +503 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/array.js +82 -109
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/assembler.cc +49 -13
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/assembler.h +27 -5
- data/ext/v8/upstream/2.1.10/src/ast.cc +1138 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ast.h +354 -53
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/bootstrapper.cc +609 -501
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/bootstrapper.h +27 -8
- data/ext/v8/upstream/2.1.10/src/builtins.cc +1512 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/builtins.h +41 -25
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/bytecodes-irregexp.h +0 -0
- data/ext/v8/upstream/2.1.10/src/cached-powers.h +119 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/char-predicates-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/char-predicates.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/checks.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/checks.h +25 -1
- data/ext/v8/upstream/2.1.10/src/circular-queue-inl.h +101 -0
- data/ext/v8/upstream/2.1.10/src/circular-queue.cc +121 -0
- data/ext/v8/upstream/2.1.10/src/circular-queue.h +129 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/code-stubs.cc +23 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/code-stubs.h +16 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/code.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/codegen-inl.h +6 -34
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/codegen.cc +73 -92
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/codegen.h +164 -68
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/compilation-cache.cc +117 -73
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/compilation-cache.h +18 -17
- data/ext/v8/upstream/2.1.10/src/compiler.cc +623 -0
- data/ext/v8/upstream/2.1.10/src/compiler.h +299 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/contexts.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/contexts.h +8 -11
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/conversions-inl.h +28 -13
- data/ext/v8/upstream/2.1.10/src/conversions.cc +1105 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/conversions.h +9 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/counters.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/counters.h +1 -1
- data/ext/v8/upstream/2.1.10/src/cpu-profiler-inl.h +99 -0
- data/ext/v8/upstream/2.1.10/src/cpu-profiler.cc +494 -0
- data/ext/v8/upstream/2.1.10/src/cpu-profiler.h +277 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/cpu.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8-debug.cc +15 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8-debug.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8-posix.cc +18 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8-readline.cc +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8-windows.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8.cc +10 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8.h +2 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/d8.js +43 -38
- data/ext/v8/upstream/2.1.10/src/data-flow.cc +755 -0
- data/ext/v8/upstream/2.1.10/src/data-flow.h +278 -0
- data/ext/v8/upstream/{2.0.6/src/date-delay.js → 2.1.10/src/date.js} +100 -110
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/dateparser-inl.h +11 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/dateparser.cc +24 -26
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/dateparser.h +8 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/debug-agent.cc +3 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/debug-agent.h +0 -0
- data/ext/v8/upstream/{2.0.6/src/debug-delay.js → 2.1.10/src/debug-debugger.js} +111 -15
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/debug.cc +156 -96
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/debug.h +53 -5
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/disasm.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/disassembler.cc +2 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/disassembler.h +0 -0
- data/ext/v8/upstream/2.1.10/src/diy-fp.cc +58 -0
- data/ext/v8/upstream/2.1.10/src/diy-fp.h +117 -0
- data/ext/v8/upstream/2.1.10/src/double.h +169 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/dtoa-config.c +4 -3
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/execution.cc +22 -22
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/execution.h +17 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/factory.cc +70 -46
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/factory.h +27 -17
- data/ext/v8/upstream/2.1.10/src/fast-codegen.cc +746 -0
- data/ext/v8/upstream/2.1.10/src/fast-codegen.h +161 -0
- data/ext/v8/upstream/2.1.10/src/fast-dtoa.cc +512 -0
- data/ext/v8/upstream/2.1.10/src/fast-dtoa.h +59 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/flag-definitions.h +32 -11
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/flags.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/flags.h +0 -0
- data/ext/v8/upstream/2.1.10/src/flow-graph.cc +763 -0
- data/ext/v8/upstream/2.1.10/src/flow-graph.h +180 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/frame-element.cc +1 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/frame-element.h +49 -11
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/frames-inl.h +2 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/frames.cc +91 -17
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/frames.h +24 -2
- data/ext/v8/upstream/{2.0.6/src/fast-codegen.cc → 2.1.10/src/full-codegen.cc} +549 -198
- data/ext/v8/upstream/{2.0.6/src/fast-codegen.h → 2.1.10/src/full-codegen.h} +109 -29
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/func-name-inferrer.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/func-name-inferrer.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/global-handles.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/global-handles.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/globals.h +67 -43
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/handles-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/handles.cc +124 -129
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/handles.h +33 -15
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/hashmap.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/hashmap.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/heap-inl.h +56 -12
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/heap-profiler.cc +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/heap-profiler.h +2 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/heap.cc +413 -221
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/heap.h +192 -67
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/assembler-ia32-inl.h +6 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/assembler-ia32.cc +187 -32
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/assembler-ia32.h +31 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/builtins-ia32.cc +160 -133
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/codegen-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/codegen-ia32.cc +5533 -2177
- data/ext/v8/upstream/{2.0.6/src/x64/codegen-x64.h → 2.1.10/src/ia32/codegen-ia32.h} +453 -134
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/cpu-ia32.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/debug-ia32.cc +63 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/disasm-ia32.cc +99 -16
- data/ext/v8/upstream/2.1.10/src/ia32/fast-codegen-ia32.cc +950 -0
- data/ext/v8/upstream/2.1.10/src/ia32/fast-codegen-ia32.h +155 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/frames-ia32.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/frames-ia32.h +0 -0
- data/ext/v8/upstream/{2.0.6/src/ia32/fast-codegen-ia32.cc → 2.1.10/src/ia32/full-codegen-ia32.cc} +454 -253
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/ic-ia32.cc +545 -390
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/jump-target-ia32.cc +1 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/macro-assembler-ia32.cc +330 -139
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/macro-assembler-ia32.h +96 -30
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/regexp-macro-assembler-ia32.cc +73 -89
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/regexp-macro-assembler-ia32.h +6 -21
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/register-allocator-ia32-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/register-allocator-ia32.cc +59 -5
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/register-allocator-ia32.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/simulator-ia32.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/simulator-ia32.h +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/stub-cache-ia32.cc +745 -303
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/virtual-frame-ia32.cc +278 -71
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ia32/virtual-frame-ia32.h +78 -22
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ic-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ic.cc +172 -89
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/ic.h +51 -20
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/interpreter-irregexp.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/interpreter-irregexp.h +0 -0
- data/ext/v8/upstream/{2.0.6/src/json-delay.js → 2.1.10/src/json.js} +26 -12
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/jsregexp.cc +151 -118
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/jsregexp.h +31 -7
- data/ext/v8/upstream/2.1.10/src/jump-target-heavy-inl.h +51 -0
- data/ext/v8/upstream/{2.0.6/src/jump-target.cc → 2.1.10/src/jump-target-heavy.cc} +164 -184
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/jump-target-inl.h +8 -9
- data/ext/v8/upstream/{2.0.6/src/usage-analyzer.h → 2.1.10/src/jump-target-light-inl.h} +9 -7
- data/ext/v8/upstream/2.1.10/src/jump-target-light.cc +86 -0
- data/ext/v8/upstream/2.1.10/src/jump-target.cc +155 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/jump-target.h +6 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/list-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/list.h +2 -1
- data/ext/v8/upstream/2.1.10/src/liveedit-debugger.js +944 -0
- data/ext/v8/upstream/2.1.10/src/liveedit.cc +1468 -0
- data/ext/v8/upstream/2.1.10/src/liveedit.h +170 -0
- data/ext/v8/upstream/2.1.10/src/log-inl.h +59 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/log-utils.cc +3 -9
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/log-utils.h +1 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/log.cc +198 -95
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/log.h +50 -49
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/macro-assembler.h +9 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/macros.py +30 -11
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/mark-compact.cc +464 -152
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/mark-compact.h +41 -20
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/math.js +9 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/memory.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/messages.cc +1 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/messages.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/messages.js +46 -9
- data/ext/v8/upstream/2.1.10/src/mips/assembler-mips-inl.h +215 -0
- data/ext/v8/upstream/2.1.10/src/mips/assembler-mips.cc +1208 -0
- data/ext/v8/upstream/2.1.10/src/mips/assembler-mips.h +665 -0
- data/ext/v8/upstream/2.1.10/src/mips/builtins-mips.cc +202 -0
- data/ext/v8/upstream/2.1.10/src/mips/codegen-mips-inl.h +70 -0
- data/ext/v8/upstream/2.1.10/src/mips/codegen-mips.cc +1428 -0
- data/ext/v8/upstream/{2.0.6/src/arm/codegen-arm.h → 2.1.10/src/mips/codegen-mips.h} +103 -205
- data/ext/v8/upstream/2.1.10/src/mips/constants-mips.cc +323 -0
- data/ext/v8/upstream/2.1.10/src/mips/constants-mips.h +525 -0
- data/ext/v8/upstream/2.1.10/src/mips/cpu-mips.cc +69 -0
- data/ext/v8/upstream/2.1.10/src/mips/debug-mips.cc +128 -0
- data/ext/v8/upstream/2.1.10/src/mips/disasm-mips.cc +784 -0
- data/ext/v8/upstream/2.1.10/src/mips/fast-codegen-mips.cc +74 -0
- data/ext/v8/upstream/2.1.10/src/mips/frames-mips.cc +99 -0
- data/ext/v8/upstream/2.1.10/src/mips/frames-mips.h +164 -0
- data/ext/v8/upstream/2.1.10/src/mips/full-codegen-mips.cc +273 -0
- data/ext/v8/upstream/2.1.10/src/mips/ic-mips.cc +217 -0
- data/ext/v8/upstream/2.1.10/src/mips/jump-target-mips.cc +172 -0
- data/ext/v8/upstream/2.1.10/src/mips/macro-assembler-mips.cc +1323 -0
- data/ext/v8/upstream/2.1.10/src/mips/macro-assembler-mips.h +461 -0
- data/ext/v8/upstream/2.1.10/src/mips/register-allocator-mips-inl.h +137 -0
- data/ext/v8/upstream/2.1.10/src/mips/register-allocator-mips.cc +60 -0
- data/ext/v8/upstream/2.1.10/src/mips/register-allocator-mips.h +46 -0
- data/ext/v8/upstream/2.1.10/src/mips/simulator-mips.cc +1648 -0
- data/ext/v8/upstream/2.1.10/src/mips/simulator-mips.h +311 -0
- data/ext/v8/upstream/2.1.10/src/mips/stub-cache-mips.cc +400 -0
- data/ext/v8/upstream/2.1.10/src/mips/virtual-frame-mips.cc +316 -0
- data/ext/v8/upstream/{2.0.6/src/arm/virtual-frame-arm.h → 2.1.10/src/mips/virtual-frame-mips.h} +87 -71
- data/ext/v8/upstream/{2.0.6/src/mirror-delay.js → 2.1.10/src/mirror-debugger.js} +51 -45
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/mksnapshot.cc +97 -10
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/natives.h +6 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/objects-debug.cc +47 -5
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/objects-inl.h +154 -38
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/objects.cc +528 -280
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/objects.h +302 -95
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/oprofile-agent.cc +25 -33
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/oprofile-agent.h +9 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/parser.cc +444 -72
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/parser.h +4 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-freebsd.cc +32 -13
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-linux.cc +59 -25
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-macos.cc +30 -13
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-nullos.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-openbsd.cc +21 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-posix.cc +0 -18
- data/ext/v8/upstream/2.1.10/src/platform-solaris.cc +607 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform-win32.cc +16 -17
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/platform.h +25 -8
- data/ext/v8/upstream/2.1.10/src/powers-ten.h +2461 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/prettyprinter.cc +49 -29
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/prettyprinter.h +3 -1
- data/ext/v8/upstream/2.1.10/src/profile-generator-inl.h +124 -0
- data/ext/v8/upstream/2.1.10/src/profile-generator.cc +583 -0
- data/ext/v8/upstream/2.1.10/src/profile-generator.h +364 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/property.cc +1 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/property.h +12 -24
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler-irregexp-inl.h +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler-irregexp.cc +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler-irregexp.h +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler-tracer.cc +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler-tracer.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler.cc +33 -10
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-macro-assembler.h +12 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-stack.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/regexp-stack.h +0 -0
- data/ext/v8/upstream/{2.0.6/src/regexp-delay.js → 2.1.10/src/regexp.js} +180 -58
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/register-allocator-inl.h +68 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/register-allocator.cc +5 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/register-allocator.h +42 -17
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/rewriter.cc +110 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/rewriter.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/runtime.cc +2733 -623
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/runtime.h +43 -20
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/runtime.js +46 -35
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/scanner.cc +278 -36
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/scanner.h +97 -26
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/scopeinfo.cc +3 -3
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/scopeinfo.h +1 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/scopes.cc +11 -12
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/scopes.h +0 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/serialize.cc +298 -175
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/serialize.h +184 -40
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/shell.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/simulator.h +2 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/smart-pointer.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/snapshot-common.cc +16 -31
- data/ext/v8/upstream/2.1.10/src/snapshot-empty.cc +50 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/snapshot.h +13 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/spaces-inl.h +35 -27
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/spaces.cc +256 -42
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/spaces.h +136 -42
- data/ext/v8/upstream/{2.0.6/src/zone-inl.h → 2.1.10/src/splay-tree-inl.h} +102 -89
- data/ext/v8/upstream/2.1.10/src/splay-tree.h +203 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/string-stream.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/string-stream.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/string.js +260 -149
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/stub-cache.cc +195 -69
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/stub-cache.h +127 -12
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/third_party/dtoa/COPYING +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/third_party/dtoa/dtoa.c +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/third_party/valgrind/valgrind.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/token.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/token.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/top.cc +26 -31
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/top.h +3 -4
- data/ext/v8/upstream/2.1.10/src/type-info.cc +53 -0
- data/ext/v8/upstream/2.1.10/src/type-info.h +244 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/unicode-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/unicode.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/unicode.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/uri.js +6 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/utils.cc +0 -37
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/utils.h +121 -50
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8-counters.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8-counters.h +130 -98
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8.cc +42 -11
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8.h +4 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8natives.js +202 -37
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8threads.cc +11 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/v8threads.h +15 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/variables.cc +7 -51
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/variables.h +5 -35
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/version.cc +3 -3
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/version.h +0 -0
- data/ext/v8/upstream/2.1.10/src/virtual-frame-heavy-inl.h +152 -0
- data/ext/v8/upstream/{2.0.6/src/virtual-frame.cc → 2.1.10/src/virtual-frame-heavy.cc} +107 -176
- data/ext/v8/upstream/2.1.10/src/virtual-frame-inl.h +39 -0
- data/ext/v8/upstream/2.1.10/src/virtual-frame-light-inl.h +69 -0
- data/ext/v8/upstream/2.1.10/src/virtual-frame-light.cc +49 -0
- data/ext/v8/upstream/2.1.10/src/virtual-frame.cc +49 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/virtual-frame.h +2 -0
- data/ext/v8/upstream/{2.0.6/src/log-inl.h → 2.1.10/src/vm-state-inl.h} +28 -20
- data/ext/v8/upstream/{2.0.6/src/snapshot-empty.cc → 2.1.10/src/vm-state.cc} +5 -6
- data/ext/v8/upstream/2.1.10/src/vm-state.h +75 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/assembler-x64-inl.h +11 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/assembler-x64.cc +285 -93
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/assembler-x64.h +81 -78
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/builtins-x64.cc +130 -87
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/codegen-x64-inl.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/codegen-x64.cc +4520 -1317
- data/ext/v8/upstream/{2.0.6/src/ia32/codegen-ia32.h → 2.1.10/src/x64/codegen-x64.h} +362 -141
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/cpu-x64.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/debug-x64.cc +20 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/disasm-x64.cc +121 -44
- data/ext/v8/upstream/2.1.10/src/x64/fast-codegen-x64.cc +246 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/frames-x64.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/frames-x64.h +0 -0
- data/ext/v8/upstream/{2.0.6/src/x64/fast-codegen-x64.cc → 2.1.10/src/x64/full-codegen-x64.cc} +404 -231
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/ic-x64.cc +346 -117
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/jump-target-x64.cc +1 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/macro-assembler-x64.cc +537 -181
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/macro-assembler-x64.h +140 -34
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/regexp-macro-assembler-x64.cc +74 -96
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/regexp-macro-assembler-x64.h +8 -25
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/register-allocator-x64-inl.h +1 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/register-allocator-x64.cc +3 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/register-allocator-x64.h +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/simulator-x64.cc +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/simulator-x64.h +2 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/stub-cache-x64.cc +785 -288
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/virtual-frame-x64.cc +128 -52
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/x64/virtual-frame-x64.h +40 -19
- data/ext/v8/upstream/2.1.10/src/zone-inl.h +82 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/zone.cc +1 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/src/zone.h +6 -90
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/codemap.js +12 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/consarray.js +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/csvparser.js +22 -37
- data/ext/v8/upstream/2.1.10/tools/generate-ten-powers.scm +286 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/gyp/v8.gyp +86 -24
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/js2c.py +22 -22
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/jsmin.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/linux-tick-processor +10 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/linux-tick-processor.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/logreader.js +34 -16
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/mac-nm +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/mac-tick-processor +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/annotate +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/common +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/dump +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/report +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/reset +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/run +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/shutdown +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/oprofile/start +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/presubmit.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/process-heap-prof.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/profile.js +70 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/profile_view.js +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/run-valgrind.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/splaytree.js +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/splaytree.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/stats-viewer.py +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/test.py +7 -7
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/tickprocessor-driver.js +7 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/tickprocessor.js +140 -9
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/tickprocessor.py +40 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/utils.py +6 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/README.txt +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/arm.vsprops +1 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/common.vsprops +1 -2
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/d8.vcproj +0 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/d8_arm.vcproj +193 -199
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/d8_x64.vcproj +16 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/d8js2c.cmd +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/debug.vsprops +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/ia32.vsprops +5 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/js2c.cmd +1 -1
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/release.vsprops +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8.sln +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8.vcproj +11 -7
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_arm.sln +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_arm.vcproj +227 -223
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_base.vcproj +137 -5
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_base_arm.vcproj +116 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_base_x64.vcproj +125 -4
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_cctest.vcproj +12 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_cctest_arm.vcproj +12 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_cctest_x64.vcproj +11 -11
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_mksnapshot.vcproj +0 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_mksnapshot_x64.vcproj +0 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_process_sample.vcproj +0 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_process_sample_arm.vcproj +145 -151
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_process_sample_x64.vcproj +16 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_shell_sample.vcproj +0 -6
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_shell_sample_arm.vcproj +145 -151
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_shell_sample_x64.vcproj +16 -8
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_snapshot.vcproj +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_snapshot_cc.vcproj +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_snapshot_cc_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_snapshot_x64.vcproj +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_x64.sln +0 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/v8_x64.vcproj +11 -7
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/visual_studio/x64.vsprops +5 -1
- data/ext/v8/upstream/2.1.10/tools/windows-tick-processor.bat +29 -0
- data/ext/v8/upstream/{2.0.6 → 2.1.10}/tools/windows-tick-processor.py +0 -0
- data/ext/v8/upstream/Makefile +8 -2
- data/ext/v8/v8.cpp +21 -73
- data/ext/v8/v8_array.cpp +56 -0
- data/ext/v8/v8_array.h +8 -0
- data/ext/v8/v8_callbacks.cpp +121 -0
- data/ext/v8/v8_callbacks.h +8 -0
- data/ext/v8/v8_cxt.cpp +74 -77
- data/ext/v8/v8_cxt.h +2 -9
- data/ext/v8/v8_date.cpp +26 -0
- data/ext/v8/v8_date.h +6 -0
- data/ext/v8/v8_exception.cpp +55 -0
- data/ext/v8/v8_exception.h +6 -0
- data/ext/v8/v8_external.cpp +50 -0
- data/ext/v8/v8_external.h +8 -0
- data/ext/v8/v8_func.cpp +76 -18
- data/ext/v8/v8_func.h +5 -4
- data/ext/v8/v8_msg.cpp +55 -46
- data/ext/v8/v8_msg.h +3 -11
- data/ext/v8/v8_obj.cpp +67 -36
- data/ext/v8/v8_obj.h +6 -8
- data/ext/v8/v8_ref.cpp +25 -9
- data/ext/v8/v8_ref.h +3 -5
- data/ext/v8/v8_script.cpp +17 -10
- data/ext/v8/v8_script.h +3 -3
- data/ext/v8/v8_str.cpp +34 -6
- data/ext/v8/v8_str.h +4 -2
- data/ext/v8/v8_template.cpp +195 -33
- data/ext/v8/v8_template.h +4 -5
- data/ext/v8/v8_try_catch.cpp +99 -0
- data/ext/v8/v8_try_catch.h +5 -0
- data/ext/v8/v8_value.cpp +164 -0
- data/ext/v8/v8_value.h +10 -0
- data/lib/v8.rb +3 -1
- data/lib/v8/access.rb +60 -0
- data/lib/v8/array.rb +15 -0
- data/lib/v8/callbacks.rb +88 -0
- data/lib/v8/cli.rb +1 -1
- data/lib/v8/context.rb +55 -66
- data/lib/v8/function.rb +20 -2
- data/lib/v8/object.rb +14 -12
- data/lib/v8/ruby_error.rb +3 -0
- data/lib/v8/to.rb +59 -7
- data/spec/ext/cxt_spec.rb +2 -15
- data/spec/ext/func_spec.rb +17 -10
- data/spec/ext/try_catch_spec.rb +32 -0
- data/spec/foo.rb +17 -0
- data/spec/redjs/jsapi_spec.rb +173 -96
- data/spec/spec_helper.rb +7 -0
- data/spec/v8/to_spec.rb +0 -1
- data/therubyracer.gemspec +6 -6
- metadata +493 -386
- data/ext/v8/upstream/2.0.6/src/arm/ic-arm.cc +0 -849
- data/ext/v8/upstream/2.0.6/src/arm/virtual-frame-arm.cc +0 -412
- data/ext/v8/upstream/2.0.6/src/ast.cc +0 -512
- data/ext/v8/upstream/2.0.6/src/builtins.cc +0 -851
- data/ext/v8/upstream/2.0.6/src/compiler.cc +0 -1132
- data/ext/v8/upstream/2.0.6/src/compiler.h +0 -107
- data/ext/v8/upstream/2.0.6/src/conversions.cc +0 -709
- data/ext/v8/upstream/2.0.6/src/usage-analyzer.cc +0 -426
- data/ext/v8/upstream/2.0.6/tools/windows-tick-processor.bat +0 -5
- data/ext/v8/upstream/no-strict-aliasing.patch +0 -13
- data/ext/v8/v8_standalone.cpp +0 -69
- data/ext/v8/v8_standalone.h +0 -31
- data/spec/ext/obj_spec.rb +0 -13
@@ -1,412 +0,0 @@
|
|
1
|
-
// Copyright 2009 the V8 project authors. All rights reserved.
|
2
|
-
// Redistribution and use in source and binary forms, with or without
|
3
|
-
// modification, are permitted provided that the following conditions are
|
4
|
-
// met:
|
5
|
-
//
|
6
|
-
// * Redistributions of source code must retain the above copyright
|
7
|
-
// notice, this list of conditions and the following disclaimer.
|
8
|
-
// * Redistributions in binary form must reproduce the above
|
9
|
-
// copyright notice, this list of conditions and the following
|
10
|
-
// disclaimer in the documentation and/or other materials provided
|
11
|
-
// with the distribution.
|
12
|
-
// * Neither the name of Google Inc. nor the names of its
|
13
|
-
// contributors may be used to endorse or promote products derived
|
14
|
-
// from this software without specific prior written permission.
|
15
|
-
//
|
16
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
-
|
28
|
-
#include "v8.h"
|
29
|
-
|
30
|
-
#include "codegen-inl.h"
|
31
|
-
#include "register-allocator-inl.h"
|
32
|
-
#include "scopes.h"
|
33
|
-
|
34
|
-
namespace v8 {
|
35
|
-
namespace internal {
|
36
|
-
|
37
|
-
// -------------------------------------------------------------------------
|
38
|
-
// VirtualFrame implementation.
|
39
|
-
|
40
|
-
#define __ ACCESS_MASM(masm())
|
41
|
-
|
42
|
-
|
43
|
-
// On entry to a function, the virtual frame already contains the
|
44
|
-
// receiver and the parameters. All initial frame elements are in
|
45
|
-
// memory.
|
46
|
-
VirtualFrame::VirtualFrame()
|
47
|
-
: elements_(parameter_count() + local_count() + kPreallocatedElements),
|
48
|
-
stack_pointer_(parameter_count()) { // 0-based index of TOS.
|
49
|
-
for (int i = 0; i <= stack_pointer_; i++) {
|
50
|
-
elements_.Add(FrameElement::MemoryElement());
|
51
|
-
}
|
52
|
-
for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) {
|
53
|
-
register_locations_[i] = kIllegalIndex;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
|
58
|
-
void VirtualFrame::SyncElementBelowStackPointer(int index) {
|
59
|
-
UNREACHABLE();
|
60
|
-
}
|
61
|
-
|
62
|
-
|
63
|
-
void VirtualFrame::SyncElementByPushing(int index) {
|
64
|
-
UNREACHABLE();
|
65
|
-
}
|
66
|
-
|
67
|
-
|
68
|
-
void VirtualFrame::SyncRange(int begin, int end) {
|
69
|
-
// All elements are in memory on ARM (ie, synced).
|
70
|
-
#ifdef DEBUG
|
71
|
-
for (int i = begin; i <= end; i++) {
|
72
|
-
ASSERT(elements_[i].is_synced());
|
73
|
-
}
|
74
|
-
#endif
|
75
|
-
}
|
76
|
-
|
77
|
-
|
78
|
-
void VirtualFrame::MergeTo(VirtualFrame* expected) {
|
79
|
-
// ARM frames are currently always in memory.
|
80
|
-
ASSERT(Equals(expected));
|
81
|
-
}
|
82
|
-
|
83
|
-
|
84
|
-
void VirtualFrame::MergeMoveRegistersToMemory(VirtualFrame* expected) {
|
85
|
-
UNREACHABLE();
|
86
|
-
}
|
87
|
-
|
88
|
-
|
89
|
-
void VirtualFrame::MergeMoveRegistersToRegisters(VirtualFrame* expected) {
|
90
|
-
UNREACHABLE();
|
91
|
-
}
|
92
|
-
|
93
|
-
|
94
|
-
void VirtualFrame::MergeMoveMemoryToRegisters(VirtualFrame* expected) {
|
95
|
-
UNREACHABLE();
|
96
|
-
}
|
97
|
-
|
98
|
-
|
99
|
-
void VirtualFrame::Enter() {
|
100
|
-
Comment cmnt(masm(), "[ Enter JS frame");
|
101
|
-
|
102
|
-
#ifdef DEBUG
|
103
|
-
// Verify that r1 contains a JS function. The following code relies
|
104
|
-
// on r2 being available for use.
|
105
|
-
if (FLAG_debug_code) {
|
106
|
-
Label map_check, done;
|
107
|
-
__ tst(r1, Operand(kSmiTagMask));
|
108
|
-
__ b(ne, &map_check);
|
109
|
-
__ stop("VirtualFrame::Enter - r1 is not a function (smi check).");
|
110
|
-
__ bind(&map_check);
|
111
|
-
__ CompareObjectType(r1, r2, r2, JS_FUNCTION_TYPE);
|
112
|
-
__ b(eq, &done);
|
113
|
-
__ stop("VirtualFrame::Enter - r1 is not a function (map check).");
|
114
|
-
__ bind(&done);
|
115
|
-
}
|
116
|
-
#endif // DEBUG
|
117
|
-
|
118
|
-
// We are about to push four values to the frame.
|
119
|
-
Adjust(4);
|
120
|
-
__ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit());
|
121
|
-
// Adjust FP to point to saved FP.
|
122
|
-
__ add(fp, sp, Operand(2 * kPointerSize));
|
123
|
-
cgen()->allocator()->Unuse(r1);
|
124
|
-
cgen()->allocator()->Unuse(lr);
|
125
|
-
}
|
126
|
-
|
127
|
-
|
128
|
-
void VirtualFrame::Exit() {
|
129
|
-
Comment cmnt(masm(), "[ Exit JS frame");
|
130
|
-
// Record the location of the JS exit code for patching when setting
|
131
|
-
// break point.
|
132
|
-
__ RecordJSReturn();
|
133
|
-
|
134
|
-
// Drop the execution stack down to the frame pointer and restore the caller
|
135
|
-
// frame pointer and return address.
|
136
|
-
__ mov(sp, fp);
|
137
|
-
__ ldm(ia_w, sp, fp.bit() | lr.bit());
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
void VirtualFrame::AllocateStackSlots() {
|
142
|
-
int count = local_count();
|
143
|
-
if (count > 0) {
|
144
|
-
Comment cmnt(masm(), "[ Allocate space for locals");
|
145
|
-
Adjust(count);
|
146
|
-
// Initialize stack slots with 'undefined' value.
|
147
|
-
__ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
|
148
|
-
__ LoadRoot(r2, Heap::kStackLimitRootIndex);
|
149
|
-
if (count < kLocalVarBound) {
|
150
|
-
// For less locals the unrolled loop is more compact.
|
151
|
-
for (int i = 0; i < count; i++) {
|
152
|
-
__ push(ip);
|
153
|
-
}
|
154
|
-
} else {
|
155
|
-
// For more locals a loop in generated code is more compact.
|
156
|
-
Label alloc_locals_loop;
|
157
|
-
__ mov(r1, Operand(count));
|
158
|
-
__ bind(&alloc_locals_loop);
|
159
|
-
__ push(ip);
|
160
|
-
__ sub(r1, r1, Operand(1), SetCC);
|
161
|
-
__ b(ne, &alloc_locals_loop);
|
162
|
-
}
|
163
|
-
} else {
|
164
|
-
__ LoadRoot(r2, Heap::kStackLimitRootIndex);
|
165
|
-
}
|
166
|
-
// Check the stack for overflow or a break request.
|
167
|
-
// Put the lr setup instruction in the delay slot. The kInstrSize is added
|
168
|
-
// to the implicit 8 byte offset that always applies to operations with pc
|
169
|
-
// and gives a return address 12 bytes down.
|
170
|
-
masm()->add(lr, pc, Operand(Assembler::kInstrSize));
|
171
|
-
masm()->cmp(sp, Operand(r2));
|
172
|
-
StackCheckStub stub;
|
173
|
-
// Call the stub if lower.
|
174
|
-
masm()->mov(pc,
|
175
|
-
Operand(reinterpret_cast<intptr_t>(stub.GetCode().location()),
|
176
|
-
RelocInfo::CODE_TARGET),
|
177
|
-
LeaveCC,
|
178
|
-
lo);
|
179
|
-
}
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
void VirtualFrame::SaveContextRegister() {
|
184
|
-
UNIMPLEMENTED();
|
185
|
-
}
|
186
|
-
|
187
|
-
|
188
|
-
void VirtualFrame::RestoreContextRegister() {
|
189
|
-
UNIMPLEMENTED();
|
190
|
-
}
|
191
|
-
|
192
|
-
|
193
|
-
void VirtualFrame::PushReceiverSlotAddress() {
|
194
|
-
UNIMPLEMENTED();
|
195
|
-
}
|
196
|
-
|
197
|
-
|
198
|
-
int VirtualFrame::InvalidateFrameSlotAt(int index) {
|
199
|
-
UNIMPLEMENTED();
|
200
|
-
return kIllegalIndex;
|
201
|
-
}
|
202
|
-
|
203
|
-
|
204
|
-
void VirtualFrame::TakeFrameSlotAt(int index) {
|
205
|
-
UNIMPLEMENTED();
|
206
|
-
}
|
207
|
-
|
208
|
-
|
209
|
-
void VirtualFrame::StoreToFrameSlotAt(int index) {
|
210
|
-
UNIMPLEMENTED();
|
211
|
-
}
|
212
|
-
|
213
|
-
|
214
|
-
void VirtualFrame::PushTryHandler(HandlerType type) {
|
215
|
-
// Grow the expression stack by handler size less one (the return
|
216
|
-
// address in lr is already counted by a call instruction).
|
217
|
-
Adjust(kHandlerSize - 1);
|
218
|
-
__ PushTryHandler(IN_JAVASCRIPT, type);
|
219
|
-
}
|
220
|
-
|
221
|
-
|
222
|
-
void VirtualFrame::RawCallStub(CodeStub* stub) {
|
223
|
-
ASSERT(cgen()->HasValidEntryRegisters());
|
224
|
-
__ CallStub(stub);
|
225
|
-
}
|
226
|
-
|
227
|
-
|
228
|
-
void VirtualFrame::CallStub(CodeStub* stub, Result* arg) {
|
229
|
-
PrepareForCall(0, 0);
|
230
|
-
arg->Unuse();
|
231
|
-
RawCallStub(stub);
|
232
|
-
}
|
233
|
-
|
234
|
-
|
235
|
-
void VirtualFrame::CallStub(CodeStub* stub, Result* arg0, Result* arg1) {
|
236
|
-
PrepareForCall(0, 0);
|
237
|
-
arg0->Unuse();
|
238
|
-
arg1->Unuse();
|
239
|
-
RawCallStub(stub);
|
240
|
-
}
|
241
|
-
|
242
|
-
|
243
|
-
void VirtualFrame::CallRuntime(Runtime::Function* f, int arg_count) {
|
244
|
-
PrepareForCall(arg_count, arg_count);
|
245
|
-
ASSERT(cgen()->HasValidEntryRegisters());
|
246
|
-
__ CallRuntime(f, arg_count);
|
247
|
-
}
|
248
|
-
|
249
|
-
|
250
|
-
void VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) {
|
251
|
-
PrepareForCall(arg_count, arg_count);
|
252
|
-
ASSERT(cgen()->HasValidEntryRegisters());
|
253
|
-
__ CallRuntime(id, arg_count);
|
254
|
-
}
|
255
|
-
|
256
|
-
|
257
|
-
void VirtualFrame::InvokeBuiltin(Builtins::JavaScript id,
|
258
|
-
InvokeJSFlags flags,
|
259
|
-
int arg_count) {
|
260
|
-
PrepareForCall(arg_count, arg_count);
|
261
|
-
__ InvokeBuiltin(id, flags);
|
262
|
-
}
|
263
|
-
|
264
|
-
|
265
|
-
void VirtualFrame::RawCallCodeObject(Handle<Code> code,
|
266
|
-
RelocInfo::Mode rmode) {
|
267
|
-
ASSERT(cgen()->HasValidEntryRegisters());
|
268
|
-
__ Call(code, rmode);
|
269
|
-
}
|
270
|
-
|
271
|
-
|
272
|
-
void VirtualFrame::CallCodeObject(Handle<Code> code,
|
273
|
-
RelocInfo::Mode rmode,
|
274
|
-
int dropped_args) {
|
275
|
-
int spilled_args = 0;
|
276
|
-
switch (code->kind()) {
|
277
|
-
case Code::CALL_IC:
|
278
|
-
spilled_args = dropped_args + 1;
|
279
|
-
break;
|
280
|
-
case Code::FUNCTION:
|
281
|
-
spilled_args = dropped_args + 1;
|
282
|
-
break;
|
283
|
-
case Code::KEYED_LOAD_IC:
|
284
|
-
ASSERT(dropped_args == 0);
|
285
|
-
spilled_args = 2;
|
286
|
-
break;
|
287
|
-
default:
|
288
|
-
// The other types of code objects are called with values
|
289
|
-
// in specific registers, and are handled in functions with
|
290
|
-
// a different signature.
|
291
|
-
UNREACHABLE();
|
292
|
-
break;
|
293
|
-
}
|
294
|
-
PrepareForCall(spilled_args, dropped_args);
|
295
|
-
RawCallCodeObject(code, rmode);
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
void VirtualFrame::CallCodeObject(Handle<Code> code,
|
300
|
-
RelocInfo::Mode rmode,
|
301
|
-
Result* arg,
|
302
|
-
int dropped_args) {
|
303
|
-
int spilled_args = 0;
|
304
|
-
switch (code->kind()) {
|
305
|
-
case Code::LOAD_IC:
|
306
|
-
ASSERT(arg->reg().is(r2));
|
307
|
-
ASSERT(dropped_args == 0);
|
308
|
-
spilled_args = 1;
|
309
|
-
break;
|
310
|
-
case Code::KEYED_STORE_IC:
|
311
|
-
ASSERT(arg->reg().is(r0));
|
312
|
-
ASSERT(dropped_args == 0);
|
313
|
-
spilled_args = 2;
|
314
|
-
break;
|
315
|
-
default:
|
316
|
-
// No other types of code objects are called with values
|
317
|
-
// in exactly one register.
|
318
|
-
UNREACHABLE();
|
319
|
-
break;
|
320
|
-
}
|
321
|
-
PrepareForCall(spilled_args, dropped_args);
|
322
|
-
arg->Unuse();
|
323
|
-
RawCallCodeObject(code, rmode);
|
324
|
-
}
|
325
|
-
|
326
|
-
|
327
|
-
void VirtualFrame::CallCodeObject(Handle<Code> code,
|
328
|
-
RelocInfo::Mode rmode,
|
329
|
-
Result* arg0,
|
330
|
-
Result* arg1,
|
331
|
-
int dropped_args) {
|
332
|
-
int spilled_args = 1;
|
333
|
-
switch (code->kind()) {
|
334
|
-
case Code::STORE_IC:
|
335
|
-
ASSERT(arg0->reg().is(r0));
|
336
|
-
ASSERT(arg1->reg().is(r2));
|
337
|
-
ASSERT(dropped_args == 0);
|
338
|
-
spilled_args = 1;
|
339
|
-
break;
|
340
|
-
case Code::BUILTIN:
|
341
|
-
ASSERT(*code == Builtins::builtin(Builtins::JSConstructCall));
|
342
|
-
ASSERT(arg0->reg().is(r0));
|
343
|
-
ASSERT(arg1->reg().is(r1));
|
344
|
-
spilled_args = dropped_args + 1;
|
345
|
-
break;
|
346
|
-
default:
|
347
|
-
// No other types of code objects are called with values
|
348
|
-
// in exactly two registers.
|
349
|
-
UNREACHABLE();
|
350
|
-
break;
|
351
|
-
}
|
352
|
-
PrepareForCall(spilled_args, dropped_args);
|
353
|
-
arg0->Unuse();
|
354
|
-
arg1->Unuse();
|
355
|
-
RawCallCodeObject(code, rmode);
|
356
|
-
}
|
357
|
-
|
358
|
-
|
359
|
-
void VirtualFrame::Drop(int count) {
|
360
|
-
ASSERT(count >= 0);
|
361
|
-
ASSERT(height() >= count);
|
362
|
-
int num_virtual_elements = (element_count() - 1) - stack_pointer_;
|
363
|
-
|
364
|
-
// Emit code to lower the stack pointer if necessary.
|
365
|
-
if (num_virtual_elements < count) {
|
366
|
-
int num_dropped = count - num_virtual_elements;
|
367
|
-
stack_pointer_ -= num_dropped;
|
368
|
-
__ add(sp, sp, Operand(num_dropped * kPointerSize));
|
369
|
-
}
|
370
|
-
|
371
|
-
// Discard elements from the virtual frame and free any registers.
|
372
|
-
for (int i = 0; i < count; i++) {
|
373
|
-
FrameElement dropped = elements_.RemoveLast();
|
374
|
-
if (dropped.is_register()) {
|
375
|
-
Unuse(dropped.reg());
|
376
|
-
}
|
377
|
-
}
|
378
|
-
}
|
379
|
-
|
380
|
-
|
381
|
-
Result VirtualFrame::Pop() {
|
382
|
-
UNIMPLEMENTED();
|
383
|
-
return Result();
|
384
|
-
}
|
385
|
-
|
386
|
-
|
387
|
-
void VirtualFrame::EmitPop(Register reg) {
|
388
|
-
ASSERT(stack_pointer_ == element_count() - 1);
|
389
|
-
stack_pointer_--;
|
390
|
-
elements_.RemoveLast();
|
391
|
-
__ pop(reg);
|
392
|
-
}
|
393
|
-
|
394
|
-
|
395
|
-
void VirtualFrame::EmitPush(Register reg) {
|
396
|
-
ASSERT(stack_pointer_ == element_count() - 1);
|
397
|
-
elements_.Add(FrameElement::MemoryElement());
|
398
|
-
stack_pointer_++;
|
399
|
-
__ push(reg);
|
400
|
-
}
|
401
|
-
|
402
|
-
|
403
|
-
void VirtualFrame::EmitPushMultiple(int count, int src_regs) {
|
404
|
-
ASSERT(stack_pointer_ == element_count() - 1);
|
405
|
-
Adjust(count);
|
406
|
-
__ stm(db_w, sp, src_regs);
|
407
|
-
}
|
408
|
-
|
409
|
-
|
410
|
-
#undef __
|
411
|
-
|
412
|
-
} } // namespace v8::internal
|
@@ -1,512 +0,0 @@
|
|
1
|
-
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2
|
-
// Redistribution and use in source and binary forms, with or without
|
3
|
-
// modification, are permitted provided that the following conditions are
|
4
|
-
// met:
|
5
|
-
//
|
6
|
-
// * Redistributions of source code must retain the above copyright
|
7
|
-
// notice, this list of conditions and the following disclaimer.
|
8
|
-
// * Redistributions in binary form must reproduce the above
|
9
|
-
// copyright notice, this list of conditions and the following
|
10
|
-
// disclaimer in the documentation and/or other materials provided
|
11
|
-
// with the distribution.
|
12
|
-
// * Neither the name of Google Inc. nor the names of its
|
13
|
-
// contributors may be used to endorse or promote products derived
|
14
|
-
// from this software without specific prior written permission.
|
15
|
-
//
|
16
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
20
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
23
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
24
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
25
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
26
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27
|
-
|
28
|
-
#include "v8.h"
|
29
|
-
|
30
|
-
#include "ast.h"
|
31
|
-
#include "parser.h"
|
32
|
-
#include "scopes.h"
|
33
|
-
#include "string-stream.h"
|
34
|
-
|
35
|
-
namespace v8 {
|
36
|
-
namespace internal {
|
37
|
-
|
38
|
-
|
39
|
-
VariableProxySentinel VariableProxySentinel::this_proxy_(true);
|
40
|
-
VariableProxySentinel VariableProxySentinel::identifier_proxy_(false);
|
41
|
-
ValidLeftHandSideSentinel ValidLeftHandSideSentinel::instance_;
|
42
|
-
Property Property::this_property_(VariableProxySentinel::this_proxy(), NULL, 0);
|
43
|
-
Call Call::sentinel_(NULL, NULL, 0);
|
44
|
-
|
45
|
-
|
46
|
-
// ----------------------------------------------------------------------------
|
47
|
-
// All the Accept member functions for each syntax tree node type.
|
48
|
-
|
49
|
-
#define DECL_ACCEPT(type) \
|
50
|
-
void type::Accept(AstVisitor* v) { \
|
51
|
-
if (v->CheckStackOverflow()) return; \
|
52
|
-
v->Visit##type(this); \
|
53
|
-
}
|
54
|
-
AST_NODE_LIST(DECL_ACCEPT)
|
55
|
-
#undef DECL_ACCEPT
|
56
|
-
|
57
|
-
|
58
|
-
// ----------------------------------------------------------------------------
|
59
|
-
// Implementation of other node functionality.
|
60
|
-
|
61
|
-
VariableProxy::VariableProxy(Handle<String> name,
|
62
|
-
bool is_this,
|
63
|
-
bool inside_with)
|
64
|
-
: name_(name),
|
65
|
-
var_(NULL),
|
66
|
-
is_this_(is_this),
|
67
|
-
inside_with_(inside_with) {
|
68
|
-
// names must be canonicalized for fast equality checks
|
69
|
-
ASSERT(name->IsSymbol());
|
70
|
-
// at least one access, otherwise no need for a VariableProxy
|
71
|
-
var_uses_.RecordRead(1);
|
72
|
-
}
|
73
|
-
|
74
|
-
|
75
|
-
VariableProxy::VariableProxy(bool is_this)
|
76
|
-
: is_this_(is_this) {
|
77
|
-
}
|
78
|
-
|
79
|
-
|
80
|
-
void VariableProxy::BindTo(Variable* var) {
|
81
|
-
ASSERT(var_ == NULL); // must be bound only once
|
82
|
-
ASSERT(var != NULL); // must bind
|
83
|
-
ASSERT((is_this() && var->is_this()) || name_.is_identical_to(var->name()));
|
84
|
-
// Ideally CONST-ness should match. However, this is very hard to achieve
|
85
|
-
// because we don't know the exact semantics of conflicting (const and
|
86
|
-
// non-const) multiple variable declarations, const vars introduced via
|
87
|
-
// eval() etc. Const-ness and variable declarations are a complete mess
|
88
|
-
// in JS. Sigh...
|
89
|
-
var_ = var;
|
90
|
-
var->var_uses()->RecordUses(&var_uses_);
|
91
|
-
var->obj_uses()->RecordUses(&obj_uses_);
|
92
|
-
}
|
93
|
-
|
94
|
-
|
95
|
-
Token::Value Assignment::binary_op() const {
|
96
|
-
switch (op_) {
|
97
|
-
case Token::ASSIGN_BIT_OR: return Token::BIT_OR;
|
98
|
-
case Token::ASSIGN_BIT_XOR: return Token::BIT_XOR;
|
99
|
-
case Token::ASSIGN_BIT_AND: return Token::BIT_AND;
|
100
|
-
case Token::ASSIGN_SHL: return Token::SHL;
|
101
|
-
case Token::ASSIGN_SAR: return Token::SAR;
|
102
|
-
case Token::ASSIGN_SHR: return Token::SHR;
|
103
|
-
case Token::ASSIGN_ADD: return Token::ADD;
|
104
|
-
case Token::ASSIGN_SUB: return Token::SUB;
|
105
|
-
case Token::ASSIGN_MUL: return Token::MUL;
|
106
|
-
case Token::ASSIGN_DIV: return Token::DIV;
|
107
|
-
case Token::ASSIGN_MOD: return Token::MOD;
|
108
|
-
default: UNREACHABLE();
|
109
|
-
}
|
110
|
-
return Token::ILLEGAL;
|
111
|
-
}
|
112
|
-
|
113
|
-
|
114
|
-
bool FunctionLiteral::AllowsLazyCompilation() {
|
115
|
-
return scope()->AllowsLazyCompilation();
|
116
|
-
}
|
117
|
-
|
118
|
-
|
119
|
-
ObjectLiteral::Property::Property(Literal* key, Expression* value) {
|
120
|
-
key_ = key;
|
121
|
-
value_ = value;
|
122
|
-
Object* k = *key->handle();
|
123
|
-
if (k->IsSymbol() && Heap::Proto_symbol()->Equals(String::cast(k))) {
|
124
|
-
kind_ = PROTOTYPE;
|
125
|
-
} else if (value_->AsMaterializedLiteral() != NULL) {
|
126
|
-
kind_ = MATERIALIZED_LITERAL;
|
127
|
-
} else if (value_->AsLiteral() != NULL) {
|
128
|
-
kind_ = CONSTANT;
|
129
|
-
} else {
|
130
|
-
kind_ = COMPUTED;
|
131
|
-
}
|
132
|
-
}
|
133
|
-
|
134
|
-
|
135
|
-
ObjectLiteral::Property::Property(bool is_getter, FunctionLiteral* value) {
|
136
|
-
key_ = new Literal(value->name());
|
137
|
-
value_ = value;
|
138
|
-
kind_ = is_getter ? GETTER : SETTER;
|
139
|
-
}
|
140
|
-
|
141
|
-
|
142
|
-
bool ObjectLiteral::Property::IsCompileTimeValue() {
|
143
|
-
return kind_ == CONSTANT ||
|
144
|
-
(kind_ == MATERIALIZED_LITERAL &&
|
145
|
-
CompileTimeValue::IsCompileTimeValue(value_));
|
146
|
-
}
|
147
|
-
|
148
|
-
|
149
|
-
bool ObjectLiteral::IsValidJSON() {
|
150
|
-
int length = properties()->length();
|
151
|
-
for (int i = 0; i < length; i++) {
|
152
|
-
Property* prop = properties()->at(i);
|
153
|
-
if (!prop->value()->IsValidJSON())
|
154
|
-
return false;
|
155
|
-
}
|
156
|
-
return true;
|
157
|
-
}
|
158
|
-
|
159
|
-
|
160
|
-
bool ArrayLiteral::IsValidJSON() {
|
161
|
-
int length = values()->length();
|
162
|
-
for (int i = 0; i < length; i++) {
|
163
|
-
if (!values()->at(i)->IsValidJSON())
|
164
|
-
return false;
|
165
|
-
}
|
166
|
-
return true;
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
void TargetCollector::AddTarget(BreakTarget* target) {
|
171
|
-
// Add the label to the collector, but discard duplicates.
|
172
|
-
int length = targets_->length();
|
173
|
-
for (int i = 0; i < length; i++) {
|
174
|
-
if (targets_->at(i) == target) return;
|
175
|
-
}
|
176
|
-
targets_->Add(target);
|
177
|
-
}
|
178
|
-
|
179
|
-
|
180
|
-
// ----------------------------------------------------------------------------
|
181
|
-
// Implementation of AstVisitor
|
182
|
-
|
183
|
-
|
184
|
-
void AstVisitor::VisitDeclarations(ZoneList<Declaration*>* declarations) {
|
185
|
-
for (int i = 0; i < declarations->length(); i++) {
|
186
|
-
Visit(declarations->at(i));
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
|
191
|
-
void AstVisitor::VisitStatements(ZoneList<Statement*>* statements) {
|
192
|
-
for (int i = 0; i < statements->length(); i++) {
|
193
|
-
Visit(statements->at(i));
|
194
|
-
}
|
195
|
-
}
|
196
|
-
|
197
|
-
|
198
|
-
void AstVisitor::VisitExpressions(ZoneList<Expression*>* expressions) {
|
199
|
-
for (int i = 0; i < expressions->length(); i++) {
|
200
|
-
// The variable statement visiting code may pass NULL expressions
|
201
|
-
// to this code. Maybe this should be handled by introducing an
|
202
|
-
// undefined expression or literal? Revisit this code if this
|
203
|
-
// changes
|
204
|
-
Expression* expression = expressions->at(i);
|
205
|
-
if (expression != NULL) Visit(expression);
|
206
|
-
}
|
207
|
-
}
|
208
|
-
|
209
|
-
|
210
|
-
// ----------------------------------------------------------------------------
|
211
|
-
// Regular expressions
|
212
|
-
|
213
|
-
#define MAKE_ACCEPT(Name) \
|
214
|
-
void* RegExp##Name::Accept(RegExpVisitor* visitor, void* data) { \
|
215
|
-
return visitor->Visit##Name(this, data); \
|
216
|
-
}
|
217
|
-
FOR_EACH_REG_EXP_TREE_TYPE(MAKE_ACCEPT)
|
218
|
-
#undef MAKE_ACCEPT
|
219
|
-
|
220
|
-
#define MAKE_TYPE_CASE(Name) \
|
221
|
-
RegExp##Name* RegExpTree::As##Name() { \
|
222
|
-
return NULL; \
|
223
|
-
} \
|
224
|
-
bool RegExpTree::Is##Name() { return false; }
|
225
|
-
FOR_EACH_REG_EXP_TREE_TYPE(MAKE_TYPE_CASE)
|
226
|
-
#undef MAKE_TYPE_CASE
|
227
|
-
|
228
|
-
#define MAKE_TYPE_CASE(Name) \
|
229
|
-
RegExp##Name* RegExp##Name::As##Name() { \
|
230
|
-
return this; \
|
231
|
-
} \
|
232
|
-
bool RegExp##Name::Is##Name() { return true; }
|
233
|
-
FOR_EACH_REG_EXP_TREE_TYPE(MAKE_TYPE_CASE)
|
234
|
-
#undef MAKE_TYPE_CASE
|
235
|
-
|
236
|
-
RegExpEmpty RegExpEmpty::kInstance;
|
237
|
-
|
238
|
-
|
239
|
-
static Interval ListCaptureRegisters(ZoneList<RegExpTree*>* children) {
|
240
|
-
Interval result = Interval::Empty();
|
241
|
-
for (int i = 0; i < children->length(); i++)
|
242
|
-
result = result.Union(children->at(i)->CaptureRegisters());
|
243
|
-
return result;
|
244
|
-
}
|
245
|
-
|
246
|
-
|
247
|
-
Interval RegExpAlternative::CaptureRegisters() {
|
248
|
-
return ListCaptureRegisters(nodes());
|
249
|
-
}
|
250
|
-
|
251
|
-
|
252
|
-
Interval RegExpDisjunction::CaptureRegisters() {
|
253
|
-
return ListCaptureRegisters(alternatives());
|
254
|
-
}
|
255
|
-
|
256
|
-
|
257
|
-
Interval RegExpLookahead::CaptureRegisters() {
|
258
|
-
return body()->CaptureRegisters();
|
259
|
-
}
|
260
|
-
|
261
|
-
|
262
|
-
Interval RegExpCapture::CaptureRegisters() {
|
263
|
-
Interval self(StartRegister(index()), EndRegister(index()));
|
264
|
-
return self.Union(body()->CaptureRegisters());
|
265
|
-
}
|
266
|
-
|
267
|
-
|
268
|
-
Interval RegExpQuantifier::CaptureRegisters() {
|
269
|
-
return body()->CaptureRegisters();
|
270
|
-
}
|
271
|
-
|
272
|
-
|
273
|
-
bool RegExpAssertion::IsAnchored() {
|
274
|
-
return type() == RegExpAssertion::START_OF_INPUT;
|
275
|
-
}
|
276
|
-
|
277
|
-
|
278
|
-
bool RegExpAlternative::IsAnchored() {
|
279
|
-
ZoneList<RegExpTree*>* nodes = this->nodes();
|
280
|
-
for (int i = 0; i < nodes->length(); i++) {
|
281
|
-
RegExpTree* node = nodes->at(i);
|
282
|
-
if (node->IsAnchored()) { return true; }
|
283
|
-
if (node->max_match() > 0) { return false; }
|
284
|
-
}
|
285
|
-
return false;
|
286
|
-
}
|
287
|
-
|
288
|
-
|
289
|
-
bool RegExpDisjunction::IsAnchored() {
|
290
|
-
ZoneList<RegExpTree*>* alternatives = this->alternatives();
|
291
|
-
for (int i = 0; i < alternatives->length(); i++) {
|
292
|
-
if (!alternatives->at(i)->IsAnchored())
|
293
|
-
return false;
|
294
|
-
}
|
295
|
-
return true;
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
bool RegExpLookahead::IsAnchored() {
|
300
|
-
return is_positive() && body()->IsAnchored();
|
301
|
-
}
|
302
|
-
|
303
|
-
|
304
|
-
bool RegExpCapture::IsAnchored() {
|
305
|
-
return body()->IsAnchored();
|
306
|
-
}
|
307
|
-
|
308
|
-
|
309
|
-
// Convert regular expression trees to a simple sexp representation.
|
310
|
-
// This representation should be different from the input grammar
|
311
|
-
// in as many cases as possible, to make it more difficult for incorrect
|
312
|
-
// parses to look as correct ones which is likely if the input and
|
313
|
-
// output formats are alike.
|
314
|
-
class RegExpUnparser: public RegExpVisitor {
|
315
|
-
public:
|
316
|
-
RegExpUnparser();
|
317
|
-
void VisitCharacterRange(CharacterRange that);
|
318
|
-
SmartPointer<const char> ToString() { return stream_.ToCString(); }
|
319
|
-
#define MAKE_CASE(Name) virtual void* Visit##Name(RegExp##Name*, void* data);
|
320
|
-
FOR_EACH_REG_EXP_TREE_TYPE(MAKE_CASE)
|
321
|
-
#undef MAKE_CASE
|
322
|
-
private:
|
323
|
-
StringStream* stream() { return &stream_; }
|
324
|
-
HeapStringAllocator alloc_;
|
325
|
-
StringStream stream_;
|
326
|
-
};
|
327
|
-
|
328
|
-
|
329
|
-
RegExpUnparser::RegExpUnparser() : stream_(&alloc_) {
|
330
|
-
}
|
331
|
-
|
332
|
-
|
333
|
-
void* RegExpUnparser::VisitDisjunction(RegExpDisjunction* that, void* data) {
|
334
|
-
stream()->Add("(|");
|
335
|
-
for (int i = 0; i < that->alternatives()->length(); i++) {
|
336
|
-
stream()->Add(" ");
|
337
|
-
that->alternatives()->at(i)->Accept(this, data);
|
338
|
-
}
|
339
|
-
stream()->Add(")");
|
340
|
-
return NULL;
|
341
|
-
}
|
342
|
-
|
343
|
-
|
344
|
-
void* RegExpUnparser::VisitAlternative(RegExpAlternative* that, void* data) {
|
345
|
-
stream()->Add("(:");
|
346
|
-
for (int i = 0; i < that->nodes()->length(); i++) {
|
347
|
-
stream()->Add(" ");
|
348
|
-
that->nodes()->at(i)->Accept(this, data);
|
349
|
-
}
|
350
|
-
stream()->Add(")");
|
351
|
-
return NULL;
|
352
|
-
}
|
353
|
-
|
354
|
-
|
355
|
-
void RegExpUnparser::VisitCharacterRange(CharacterRange that) {
|
356
|
-
stream()->Add("%k", that.from());
|
357
|
-
if (!that.IsSingleton()) {
|
358
|
-
stream()->Add("-%k", that.to());
|
359
|
-
}
|
360
|
-
}
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
void* RegExpUnparser::VisitCharacterClass(RegExpCharacterClass* that,
|
365
|
-
void* data) {
|
366
|
-
if (that->is_negated())
|
367
|
-
stream()->Add("^");
|
368
|
-
stream()->Add("[");
|
369
|
-
for (int i = 0; i < that->ranges()->length(); i++) {
|
370
|
-
if (i > 0) stream()->Add(" ");
|
371
|
-
VisitCharacterRange(that->ranges()->at(i));
|
372
|
-
}
|
373
|
-
stream()->Add("]");
|
374
|
-
return NULL;
|
375
|
-
}
|
376
|
-
|
377
|
-
|
378
|
-
void* RegExpUnparser::VisitAssertion(RegExpAssertion* that, void* data) {
|
379
|
-
switch (that->type()) {
|
380
|
-
case RegExpAssertion::START_OF_INPUT:
|
381
|
-
stream()->Add("@^i");
|
382
|
-
break;
|
383
|
-
case RegExpAssertion::END_OF_INPUT:
|
384
|
-
stream()->Add("@$i");
|
385
|
-
break;
|
386
|
-
case RegExpAssertion::START_OF_LINE:
|
387
|
-
stream()->Add("@^l");
|
388
|
-
break;
|
389
|
-
case RegExpAssertion::END_OF_LINE:
|
390
|
-
stream()->Add("@$l");
|
391
|
-
break;
|
392
|
-
case RegExpAssertion::BOUNDARY:
|
393
|
-
stream()->Add("@b");
|
394
|
-
break;
|
395
|
-
case RegExpAssertion::NON_BOUNDARY:
|
396
|
-
stream()->Add("@B");
|
397
|
-
break;
|
398
|
-
}
|
399
|
-
return NULL;
|
400
|
-
}
|
401
|
-
|
402
|
-
|
403
|
-
void* RegExpUnparser::VisitAtom(RegExpAtom* that, void* data) {
|
404
|
-
stream()->Add("'");
|
405
|
-
Vector<const uc16> chardata = that->data();
|
406
|
-
for (int i = 0; i < chardata.length(); i++) {
|
407
|
-
stream()->Add("%k", chardata[i]);
|
408
|
-
}
|
409
|
-
stream()->Add("'");
|
410
|
-
return NULL;
|
411
|
-
}
|
412
|
-
|
413
|
-
|
414
|
-
void* RegExpUnparser::VisitText(RegExpText* that, void* data) {
|
415
|
-
if (that->elements()->length() == 1) {
|
416
|
-
that->elements()->at(0).data.u_atom->Accept(this, data);
|
417
|
-
} else {
|
418
|
-
stream()->Add("(!");
|
419
|
-
for (int i = 0; i < that->elements()->length(); i++) {
|
420
|
-
stream()->Add(" ");
|
421
|
-
that->elements()->at(i).data.u_atom->Accept(this, data);
|
422
|
-
}
|
423
|
-
stream()->Add(")");
|
424
|
-
}
|
425
|
-
return NULL;
|
426
|
-
}
|
427
|
-
|
428
|
-
|
429
|
-
void* RegExpUnparser::VisitQuantifier(RegExpQuantifier* that, void* data) {
|
430
|
-
stream()->Add("(# %i ", that->min());
|
431
|
-
if (that->max() == RegExpTree::kInfinity) {
|
432
|
-
stream()->Add("- ");
|
433
|
-
} else {
|
434
|
-
stream()->Add("%i ", that->max());
|
435
|
-
}
|
436
|
-
stream()->Add(that->is_greedy() ? "g " : that->is_possessive() ? "p " : "n ");
|
437
|
-
that->body()->Accept(this, data);
|
438
|
-
stream()->Add(")");
|
439
|
-
return NULL;
|
440
|
-
}
|
441
|
-
|
442
|
-
|
443
|
-
void* RegExpUnparser::VisitCapture(RegExpCapture* that, void* data) {
|
444
|
-
stream()->Add("(^ ");
|
445
|
-
that->body()->Accept(this, data);
|
446
|
-
stream()->Add(")");
|
447
|
-
return NULL;
|
448
|
-
}
|
449
|
-
|
450
|
-
|
451
|
-
void* RegExpUnparser::VisitLookahead(RegExpLookahead* that, void* data) {
|
452
|
-
stream()->Add("(-> ");
|
453
|
-
stream()->Add(that->is_positive() ? "+ " : "- ");
|
454
|
-
that->body()->Accept(this, data);
|
455
|
-
stream()->Add(")");
|
456
|
-
return NULL;
|
457
|
-
}
|
458
|
-
|
459
|
-
|
460
|
-
void* RegExpUnparser::VisitBackReference(RegExpBackReference* that,
|
461
|
-
void* data) {
|
462
|
-
stream()->Add("(<- %i)", that->index());
|
463
|
-
return NULL;
|
464
|
-
}
|
465
|
-
|
466
|
-
|
467
|
-
void* RegExpUnparser::VisitEmpty(RegExpEmpty* that, void* data) {
|
468
|
-
stream()->Put('%');
|
469
|
-
return NULL;
|
470
|
-
}
|
471
|
-
|
472
|
-
|
473
|
-
SmartPointer<const char> RegExpTree::ToString() {
|
474
|
-
RegExpUnparser unparser;
|
475
|
-
Accept(&unparser, NULL);
|
476
|
-
return unparser.ToString();
|
477
|
-
}
|
478
|
-
|
479
|
-
|
480
|
-
RegExpDisjunction::RegExpDisjunction(ZoneList<RegExpTree*>* alternatives)
|
481
|
-
: alternatives_(alternatives) {
|
482
|
-
ASSERT(alternatives->length() > 1);
|
483
|
-
RegExpTree* first_alternative = alternatives->at(0);
|
484
|
-
min_match_ = first_alternative->min_match();
|
485
|
-
max_match_ = first_alternative->max_match();
|
486
|
-
for (int i = 1; i < alternatives->length(); i++) {
|
487
|
-
RegExpTree* alternative = alternatives->at(i);
|
488
|
-
min_match_ = Min(min_match_, alternative->min_match());
|
489
|
-
max_match_ = Max(max_match_, alternative->max_match());
|
490
|
-
}
|
491
|
-
}
|
492
|
-
|
493
|
-
|
494
|
-
RegExpAlternative::RegExpAlternative(ZoneList<RegExpTree*>* nodes)
|
495
|
-
: nodes_(nodes) {
|
496
|
-
ASSERT(nodes->length() > 1);
|
497
|
-
min_match_ = 0;
|
498
|
-
max_match_ = 0;
|
499
|
-
for (int i = 0; i < nodes->length(); i++) {
|
500
|
-
RegExpTree* node = nodes->at(i);
|
501
|
-
min_match_ += node->min_match();
|
502
|
-
int node_max_match = node->max_match();
|
503
|
-
if (kInfinity - max_match_ < node_max_match) {
|
504
|
-
max_match_ = kInfinity;
|
505
|
-
} else {
|
506
|
-
max_match_ += node->max_match();
|
507
|
-
}
|
508
|
-
}
|
509
|
-
}
|
510
|
-
|
511
|
-
|
512
|
-
} } // namespace v8::internal
|