zpao/v8monkey — Issue #101: Fix Script/ScriptData post-merge
Author: zpao
Created: 2011-10-24 21:40:54+00:00
State: open

It looks like `JSScript` is no longer a `JSObject`, so we need to fix things accordingly. And some other small things I think (`JS_XDRScriptObject` --> `JS_XDRScript`)

```
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp: In member function ‘void v8::ScriptData::SerializeScriptObject(JSObject*)’:
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:614: error: ‘JS_XDRScriptObject’ was not declared in this scope
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp: In static member function ‘static v8::ScriptData* v8::ScriptData::PreCompile(const char*, int)’:
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:640: error: cannot convert ‘JSScript*’ to ‘JSObject*’ in initializationinternal.cpp

/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp: In static member function ‘static v8::ScriptData* v8::ScriptData::PreCompile(v8::Handle)’:
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:661: error: cannot convert ‘JSScript*’ to ‘JSObject*’ in initialization
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp: In member function ‘JSObject* v8::ScriptData::GenerateScriptObject(void*, int)’:
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:715: error: ‘JS_XDRScriptObject’ was not declared in this scope
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp: In static member function ‘static v8::Local v8::Script::Create(v8::Handle, v8::ScriptOrigin*, v8::ScriptData*, v8::Handle, bool)’:
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:765: error: cannot convert ‘JSScript*’ to ‘JSObject*’ in assignment
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:768: error: cannot convert ‘JSScript*’ to ‘JSObject*’ in assignment
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp: In member function ‘v8::Local v8::Script::Run()’:
/Users/pao/Code/v8monkey/js/src/v8api/v8.cpp:819: error: cannot convert ‘v8::Script’ to ‘JSScript*’ for argument ‘3’ to ‘JSBool JS_ExecuteScript(JSContext*, JSObject*, JSScript*, jsval*)’
```