diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-02-24 13:14:59 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-02-24 13:14:59 -0800 |
commit | e33e7d1a3712add02cd08c0069bb56ba76e49aa5 (patch) | |
tree | 3cd8937acf1e3b27a265e42bf3d42241d51f6c1a /deps/v8/src/gdb-jit.cc | |
parent | 2680522d3a71fb5f12aa052555f3d04806338821 (diff) | |
download | node-new-e33e7d1a3712add02cd08c0069bb56ba76e49aa5.tar.gz |
Upgrade V8 to 3.1.6
Diffstat (limited to 'deps/v8/src/gdb-jit.cc')
-rw-r--r-- | deps/v8/src/gdb-jit.cc | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/deps/v8/src/gdb-jit.cc b/deps/v8/src/gdb-jit.cc index 88a9939722..5136deddbf 100644 --- a/deps/v8/src/gdb-jit.cc +++ b/deps/v8/src/gdb-jit.cc @@ -1411,9 +1411,8 @@ static void AddUnwindInfo(CodeDescription *desc) { #ifdef V8_TARGET_ARCH_X64 if (desc->tag() == GDBJITInterface::FUNCTION) { // To avoid propagating unwinding information through - // compilation pipeline we rely on function prologue - // and epilogue being the same for all code objects generated - // by the full code generator. + // compilation pipeline we use an approximation. + // For most use cases this should not affect usability. static const int kFramePointerPushOffset = 1; static const int kFramePointerSetOffset = 4; static const int kFramePointerPopOffset = -3; @@ -1427,19 +1426,6 @@ static void AddUnwindInfo(CodeDescription *desc) { uintptr_t frame_pointer_pop_address = desc->CodeEnd() + kFramePointerPopOffset; -#ifdef DEBUG - static const uint8_t kFramePointerPushInstruction = 0x48; // push ebp - static const uint16_t kFramePointerSetInstruction = 0x5756; // mov ebp, esp - static const uint8_t kFramePointerPopInstruction = 0xBE; // pop ebp - - ASSERT(*reinterpret_cast<uint8_t*>(frame_pointer_push_address) == - kFramePointerPushInstruction); - ASSERT(*reinterpret_cast<uint16_t*>(frame_pointer_set_address) == - kFramePointerSetInstruction); - ASSERT(*reinterpret_cast<uint8_t*>(frame_pointer_pop_address) == - kFramePointerPopInstruction); -#endif - desc->SetStackStateStartAddress(CodeDescription::POST_RBP_PUSH, frame_pointer_push_address); desc->SetStackStateStartAddress(CodeDescription::POST_RBP_SET, |