Show
Ignore:
Timestamp:
08/18/08 11:14:49 (5 months ago)
Author:
odole
Message:

merge with webkit revision 35814

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/JavaScriptCore/API/JSBase.cpp

    r433 r440  
    3030#include "APICast.h" 
    3131#include "completion.h" 
     32#include "OpaqueJSString.h" 
    3233#include <kjs/ExecState.h> 
    3334#include <kjs/InitializeThreading.h> 
     
    4445 
    4546    JSObject* jsThisObject = toJS(thisObject); 
    46     UString::Rep* scriptRep = toJS(script); 
    47     UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null; 
    4847 
    4948    // Interpreter::evaluate sets "this" to the global object if it is NULL 
    5049    JSGlobalObject* globalObject = exec->dynamicGlobalObject(); 
    51     Completion completion = Interpreter::evaluate(globalObject->globalExec(), globalObject->globalScopeChain(), UString(sourceURLRep), startingLineNumber, UString(scriptRep), jsThisObject); 
     50    Completion completion = Interpreter::evaluate(globalObject->globalExec(), globalObject->globalScopeChain(), sourceURL->ustring(), startingLineNumber, script->ustring(), jsThisObject); 
    5251 
    5352    if (completion.complType() == Throw) { 
     
    6968    exec->globalData().heap->registerThread(); 
    7069 
    71     UString::Rep* scriptRep = toJS(script); 
    72     UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null; 
    73     Completion completion = Interpreter::checkSyntax(exec->dynamicGlobalObject()->globalExec(), UString(sourceURLRep), startingLineNumber, UString(scriptRep)); 
     70    Completion completion = Interpreter::checkSyntax(exec->dynamicGlobalObject()->globalExec(), sourceURL->ustring(), startingLineNumber, script->ustring()); 
    7471    if (completion.complType() == Throw) { 
    7572        if (exception)