Changeset 215196 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp
- Timestamp:
- Apr 10, 2017, 12:38:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp
r209313 r215196 1 1 /* 2 * Copyright (C) 2013-201 5Apple Inc. All rights reserved.2 * Copyright (C) 2013-2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 27 27 28 28 #if ENABLE(ASSEMBLER) && (CPU(X86) || CPU(X86_64)) 29 #include "MacroAssembler X86Common.h"29 #include "MacroAssembler.h" 30 30 31 31 #include <wtf/InlineASM.h> … … 39 39 #if COMPILER(GCC_OR_CLANG) 40 40 41 // The following are offsets for MacroAssemblerX86Common::ProbeContext fields accessed 42 // by the ctiMasmProbeTrampoline stub. 41 // The following are offsets for ProbeContext fields accessed by the ctiMasmProbeTrampoline stub. 43 42 44 43 #if CPU(X86) … … 106 105 // These ASSERTs remind you that if you change the layout of ProbeContext, 107 106 // you need to change ctiMasmProbeTrampoline offsets above to match. 108 #define PROBE_OFFSETOF(x) offsetof(struct MacroAssemblerX86Common::ProbeContext, x)107 #define PROBE_OFFSETOF(x) offsetof(struct ProbeContext, x) 109 108 COMPILE_ASSERT(PROBE_OFFSETOF(probeFunction) == PROBE_PROBE_FUNCTION_OFFSET, ProbeContext_probeFunction_offset_matches_ctiMasmProbeTrampoline); 110 109 COMPILE_ASSERT(PROBE_OFFSETOF(arg1) == PROBE_ARG1_OFFSET, ProbeContext_arg1_offset_matches_ctiMasmProbeTrampoline); … … 153 152 #endif // CPU(X86_64) 154 153 155 COMPILE_ASSERT(sizeof( MacroAssemblerX86Common::ProbeContext) == PROBE_SIZE, ProbeContext_size_matches_ctiMasmProbeTrampoline);154 COMPILE_ASSERT(sizeof(ProbeContext) == PROBE_SIZE, ProbeContext_size_matches_ctiMasmProbeTrampoline); 156 155 157 156 #undef PROBE_OFFSETOF … … 533 532 // the address of the instruction immediately following the probe. 534 533 535 void MacroAssemblerX86Common::probe( MacroAssemblerX86Common::ProbeFunction function, void* arg1, void* arg2)534 void MacroAssemblerX86Common::probe(ProbeFunction function, void* arg1, void* arg2) 536 535 { 537 536 push(RegisterID::esp);
Note:
See TracChangeset
for help on using the changeset viewer.