Changeset 215196 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssembler.cpp
- Timestamp:
- Apr 10, 2017, 12:38:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssembler.cpp
r191816 r215196 1 1 /* 2 * Copyright (C) 2012 Apple Inc. All rights reserved.2 * Copyright (C) 2012-2017 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 36 36 37 37 #if ENABLE(MASM_PROBE) 38 static void stdFunctionCallback( MacroAssembler::ProbeContext* context)38 static void stdFunctionCallback(ProbeContext* context) 39 39 { 40 auto func = static_cast<const std::function<void (MacroAssembler::ProbeContext*)>*>(context->arg1);40 auto func = static_cast<const std::function<void(ProbeContext*)>*>(context->arg1); 41 41 (*func)(context); 42 42 } 43 43 44 void MacroAssembler::probe(std::function<void (MacroAssembler::ProbeContext*)> func)44 void MacroAssembler::probe(std::function<void(ProbeContext*)> func) 45 45 { 46 probe(stdFunctionCallback, new std::function<void (MacroAssembler::ProbeContext*)>(func), 0);46 probe(stdFunctionCallback, new std::function<void(ProbeContext*)>(func), 0); 47 47 } 48 48 #endif // ENABLE(MASM_PROBE)
Note:
See TracChangeset
for help on using the changeset viewer.