X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..refs/heads/master:/profiler/ProfilerBytecodes.cpp?ds=inline diff --git a/profiler/ProfilerBytecodes.cpp b/profiler/ProfilerBytecodes.cpp index 3ae35dc..74c55ab 100644 --- a/profiler/ProfilerBytecodes.cpp +++ b/profiler/ProfilerBytecodes.cpp @@ -29,7 +29,7 @@ #include "CodeBlock.h" #include "JSGlobalObject.h" #include "ObjectConstructor.h" -#include "Operations.h" +#include "JSCInlines.h" #include namespace JSC { namespace Profiler { @@ -56,8 +56,8 @@ JSValue Bytecodes::toJS(ExecState* exec) const JSObject* result = constructEmptyObject(exec); result->putDirect(exec->vm(), exec->propertyNames().bytecodesID, jsNumber(m_id)); - result->putDirect(exec->vm(), exec->propertyNames().inferredName, jsString(exec, m_inferredName)); - result->putDirect(exec->vm(), exec->propertyNames().sourceCode, jsString(exec, m_sourceCode)); + result->putDirect(exec->vm(), exec->propertyNames().inferredName, jsString(exec, String::fromUTF8(m_inferredName))); + result->putDirect(exec->vm(), exec->propertyNames().sourceCode, jsString(exec, String::fromUTF8(m_sourceCode))); result->putDirect(exec->vm(), exec->propertyNames().hash, jsString(exec, String::fromUTF8(toCString(m_hash)))); result->putDirect(exec->vm(), exec->propertyNames().instructionCount, jsNumber(m_instructionCount)); addSequenceProperties(exec, result);