/*
- * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2012-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
MinifiedNode result;
result.m_id = MinifiedID(node);
result.m_op = node->op();
- if (hasConstantNumber(node->op()))
- result.m_info = node->constantNumber();
- else if (hasWeakConstant(node->op()))
- result.m_info = bitwise_cast<uintptr_t>(node->weakConstant());
+ if (hasConstant(node->op()))
+ result.m_info = JSValue::encode(node->asJSValue());
else {
- ASSERT(node->op() == PhantomArguments);
- result.m_info = 0;
+ ASSERT(node->op() == PhantomDirectArguments || node->op() == PhantomClonedArguments);
+ result.m_info = bitwise_cast<uintptr_t>(node->origin.semantic.inlineCallFrame);
}
return result;
}