Changeset 176095 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp
- Timestamp:
- Nov 13, 2014, 3:00:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp
r176031 r176095 1 1 /* 2 * Copyright (C) 2013 Apple Inc. All rights reserved.2 * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 38 38 #define DUMP_GPREGISTER(_type, _regName) { \ 39 39 int32_t value = reinterpret_cast<int32_t>(cpu._regName); \ 40 dataLogF("%s %6s: 0x%08x 40 dataLogF("%s %6s: 0x%08x %d\n", indentation, #_regName, value, value) ; \ 41 41 } 42 42 #elif CPU(X86_64) 43 43 #define DUMP_GPREGISTER(_type, _regName) { \ 44 44 int64_t value = reinterpret_cast<int64_t>(cpu._regName); \ 45 dataLogF("%s %6s: 0x%016llx 45 dataLogF("%s %6s: 0x%016llx %lld\n", indentation, #_regName, value, value) ; \ 46 46 } 47 47 #endif … … 51 51 52 52 #define DUMP_FPREGISTER(_type, _regName) { \ 53 uint 32_t* u = reinterpret_cast<uint32_t*>(&cpu._regName); \53 uint64_t* u = reinterpret_cast<uint64_t*>(&cpu._regName); \ 54 54 double* d = reinterpret_cast<double*>(&cpu._regName); \ 55 dataLogF("%s %6s: 0x%08x%08x 0x%08x%08x %12g %12g\n", \ 56 indentation, #_regName, u[3], u[2], u[1], u[0], d[1], d[0]); \ 55 dataLogF("%s %6s: 0x%016llx %.13g\n", indentation, #_regName, *u, *d); \ 57 56 } 58 57 FOR_EACH_CPU_FPREGISTER(DUMP_FPREGISTER)
Note:
See TracChangeset
for help on using the changeset viewer.