X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..refs/heads/master:/runtime/ConstantMode.h diff --git a/runtime/ConstantMode.h b/runtime/ConstantMode.h index 389a074..a049627 100644 --- a/runtime/ConstantMode.h +++ b/runtime/ConstantMode.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Apple Inc. All rights reserved. + * Copyright (C) 2013, 2015 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,11 +26,24 @@ #ifndef ConstantMode_h #define ConstantMode_h +#include + namespace JSC { enum ConstantMode { IsConstant, IsVariable }; +inline ConstantMode modeForIsConstant(bool isConstant) +{ + return isConstant ? IsConstant : IsVariable; +} + } // namespace JSC +namespace WTF { + +void printInternal(PrintStream&, JSC::ConstantMode); + +} // namespace WTF + #endif // ConstantMode_h