summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp')
-rw-r--r--Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp b/Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp
index 3ae35dcc0..74c55abcf 100644
--- a/Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp
+++ b/Source/JavaScriptCore/profiler/ProfilerBytecodes.cpp
@@ -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);