fixed compile errors for no-JIT configuration

Issue #11475 https://github.com/ariya/phantomjs/issues/11475
1.x
Dmitry Parshin 2013-07-12 15:47:46 -04:00 committed by Ariya Hidayat
parent 4989445e71
commit 8114d44a28
1 changed files with 10 additions and 1 deletions

View File

@ -148,7 +148,12 @@ JSObject* addErrorInfo(ExecState* exec, JSObject* error, int line, const SourceC
stackString.append(error->toString(exec));
bool functionKnown;
#if ENABLE(JIT)
ReturnAddressPtr pc;
#endif
#if ENABLE(INTERPRETER)
Instruction* pc = NULL;
#endif
while (!frame->hasHostCallFrameFlag()) {
CodeBlock* codeBlock = frame->codeBlock();
@ -189,7 +194,6 @@ JSObject* addErrorInfo(ExecState* exec, JSObject* error, int line, const SourceC
if (frame != exec) {
line = codeBlock->lineNumberForBytecodeOffset(codeBlock->bytecodeOffset(pc));
}
arrayItem->putWithAttributes(
globalData, Identifier(globalData, linePropertyName),
jsNumber(line), ReadOnly | DontDelete
@ -203,7 +207,12 @@ JSObject* addErrorInfo(ExecState* exec, JSObject* error, int line, const SourceC
stackArray->push(exec, JSValue(arrayItem));
#if ENABLE(JIT)
pc = frame->returnPC();
#endif
#if ENABLE(INTERPRETER)
pc = frame->returnVPC();
#endif
frame = frame->callerFrame();
}