]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - profiler/ProfilerBytecodes.cpp
JavaScriptCore-7600.1.4.15.12.tar.gz
[apple/javascriptcore.git] / profiler / ProfilerBytecodes.cpp
index 3ae35dcc01f1b7ffd017ffa18a819b796cc89102..74c55abcfa0bf6c93a49d43493f4f93e8d4686cf 100644 (file)
@@ -29,7 +29,7 @@
 #include "CodeBlock.h"
 #include "JSGlobalObject.h"
 #include "ObjectConstructor.h"
-#include "Operations.h"
+#include "JSCInlines.h"
 #include <wtf/StringPrintStream.h>
 
 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);