• sgjesse@chromium.org's avatar
    Direct call to native RegExp code from JavaScript. · 429f3cf9
    sgjesse@chromium.org authored
    Calls to RegExp no longer have to be via a call to the runtime system. A new stub have been added which can handle this call in generated code. The stub checks all the parameters and creates RegExp entry frame in the same way as it is created by the runtime system. Bailout to the runtime system is done whenever an uncommon situation is encountered or when the static data used is not initialized. After running the native RegExp code the last match info is updated like in the runtime system.
    
    Currently only ASCII strings are handled.
    
    Added another argument to the RegExp entry frame. It indicated whether the call is direct from JavaScript code or through the runtime system. This information is used when RegExp execution is interrupted. If an interruption happens when RegExp code is called directly a retry is issued causing the interruption to be handled via the runtime system. The reason for this is that the direct call to RegExp code does not support garbage collection.
    Review URL: http://codereview.chromium.org/521028
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3542 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    429f3cf9
Name
Last commit
Last update
..
assembler-arm-inl.h Loading commit data...
assembler-arm.cc Loading commit data...
assembler-arm.h Loading commit data...
assembler-thumb2-inl.h Loading commit data...
assembler-thumb2.cc Loading commit data...
assembler-thumb2.h Loading commit data...
builtins-arm.cc Loading commit data...
codegen-arm-inl.h Loading commit data...
codegen-arm.cc Loading commit data...
codegen-arm.h Loading commit data...
constants-arm.cc Loading commit data...
constants-arm.h Loading commit data...
cpu-arm.cc Loading commit data...
debug-arm.cc Loading commit data...
disasm-arm.cc Loading commit data...
fast-codegen-arm.cc Loading commit data...
frames-arm.cc Loading commit data...
frames-arm.h Loading commit data...
ic-arm.cc Loading commit data...
jump-target-arm.cc Loading commit data...
macro-assembler-arm.cc Loading commit data...
macro-assembler-arm.h Loading commit data...
regexp-macro-assembler-arm.cc Loading commit data...
regexp-macro-assembler-arm.h Loading commit data...
register-allocator-arm-inl.h Loading commit data...
register-allocator-arm.cc Loading commit data...
register-allocator-arm.h Loading commit data...
simulator-arm.cc Loading commit data...
simulator-arm.h Loading commit data...
stub-cache-arm.cc Loading commit data...
virtual-frame-arm.cc Loading commit data...
virtual-frame-arm.h Loading commit data...