• sgjesse@chromium.org's avatar
    Changed the debugger message API to receive an object instead of a JSON string. · 95288e91
    sgjesse@chromium.org authored
    The object delivered to the debug message handler contains additional information on the current break handling the messages.
    
    Clients which require just JSON message parsing can simply get the JSON using the GetJSON message on the message object to still have the previous behaviour.
    
      NewMessageHangler(const v8::Debug::Message& message) {
        v8::String::Value val(message.GetJSON());
        OldMessageHandler(Vector<uint16_t>(const_cast<uint16_t*>(*val), val.length()));
      }
    
    Refactored some of the debugger code to use internal handles instead of API handles. Also changed Object to JSObject is some places.
    
    The access to the active context when the break occurred is still not implemented. I will add this in a new CL, as this one is quite big already.
    Review URL: http://codereview.chromium.org/99122
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1811 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    95288e91
Name
Last commit
Last update
..
SConscript Loading commit data...
cctest.cc Loading commit data...
cctest.h Loading commit data...
cctest.status Loading commit data...
test-alloc.cc Loading commit data...
test-api.cc Loading commit data...
test-assembler-arm.cc Loading commit data...
test-assembler-ia32.cc Loading commit data...
test-ast.cc Loading commit data...
test-compiler.cc Loading commit data...
test-conversions.cc Loading commit data...
test-debug.cc Loading commit data...
test-decls.cc Loading commit data...
test-disasm-arm.cc Loading commit data...
test-disasm-ia32.cc Loading commit data...
test-flags.cc Loading commit data...
test-func-name-inference.cc Loading commit data...
test-hashmap.cc Loading commit data...
test-heap.cc Loading commit data...
test-list.cc Loading commit data...
test-lock.cc Loading commit data...
test-log-ia32.cc Loading commit data...
test-mark-compact.cc Loading commit data...
test-platform-linux.cc Loading commit data...
test-platform-macos.cc Loading commit data...
test-platform-nullos.cc Loading commit data...
test-platform-win32.cc Loading commit data...
test-regexp.cc Loading commit data...
test-serialize.cc Loading commit data...
test-sockets.cc Loading commit data...
test-spaces.cc Loading commit data...
test-strings.cc Loading commit data...
test-threads.cc Loading commit data...
test-utils.cc Loading commit data...
testcfg.py Loading commit data...