Ignore:
Timestamp:
Jan 27, 2015, 2:56:00 PM (10 years ago)
Author:
[email protected]
Message:

Move DFGBinarySwitch out of the DFG so that all of the JITs can use it
https://bugs.webkit.org/show_bug.cgi?id=140959

Rubber stamped by Geoffrey Garen.

I want to use this for polymorphic stubs for https://bugs.webkit.org/show_bug.cgi?id=140660.
This code no longer has DFG dependencies so this is a very clean move.

  • CMakeLists.txt:
  • JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • dfg/DFGBinarySwitch.cpp: Removed.
  • dfg/DFGBinarySwitch.h: Removed.
  • dfg/DFGSpeculativeJIT.cpp:
  • jit/BinarySwitch.cpp: Copied from Source/JavaScriptCore/dfg/DFGBinarySwitch.cpp.
  • jit/BinarySwitch.h: Copied from Source/JavaScriptCore/dfg/DFGBinarySwitch.h.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/BinarySwitch.cpp

    r179136 r179223  
    11/*
    2  * Copyright (C) 2013 Apple Inc. All rights reserved.
     2 * Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    2525
    2626#include "config.h"
    27 #include "DFGBinarySwitch.h"
     27#include "BinarySwitch.h"
    2828
    29 #if ENABLE(DFG_JIT)
     29#if ENABLE(JIT)
    3030
    3131#include "JSCInlines.h"
    3232
    33 namespace JSC { namespace DFG {
     33namespace JSC {
    3434
    3535BinarySwitch::BinarySwitch(GPRReg value, const Vector<int64_t>& cases, Type type)
     
    193193}
    194194
    195 } } // namespace JSC::DFG
     195} // namespace JSC
    196196
    197 #endif // ENABLE(DFG_JIT)
     197#endif // ENABLE(JIT)
    198198
Note: See TracChangeset for help on using the changeset viewer.