code-google-com / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

Errors compiling against V8 r8584 #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I identified a pair of problems while compiling PyV8 against the last
version of V8 (r8584).

Problem #1

src/Engine.cpp: In static member function 'static void CEngine::Expose()':
src/Engine.cpp:240: error: 'ProfilerModules' is not a member of 'v8'
src/Engine.cpp:240: error: 'ProfilerModules' is not a member of 'v8'
src/Engine.cpp:240: error: template argument 1 is invalid
src/Engine.cpp:241: error: 'PROFILER_MODULE_NONE' is not a member of 'v8'
src/Engine.cpp:242: error: 'PROFILER_MODULE_CPU' is not a member of 'v8'
src/Engine.cpp:243: error: 'PROFILER_MODULE_HEAP_STATS' is not a member of 'v8'
src/Engine.cpp:244: error: 'PROFILER_MODULE_JS_CONSTRUCTORS' is not a member of 
'v8'
src/Engine.cpp:245: error: 'PROFILER_MODULE_HEAP_SNAPSHOT' is not a member of 
'v8'
src/Engine.cpp:246: error: 'ProfilerModules' is not a member of 'v8'
src/Engine.cpp:246: error: 'PROFILER_MODULE_CPU' is not a member of 'v8'
src/Engine.cpp:246: error: 'PROFILER_MODULE_HEAP_STATS' is not a member of 'v8'
src/Engine.cpp:247: error: 'PROFILER_MODULE_JS_CONSTRUCTORS' is not a member of 
'v8'
src/Engine.cpp:247: error: 'PROFILER_MODULE_HEAP_SNAPSHOT' is not a member of 
'v8'
src/Engine.cpp:261: error: 'PauseProfilerEx' is not a member of 'v8::V8'
src/Engine.cpp:261: error: 'PROFILER_MODULE_CPU' is not a member of 'v8'
src/Engine.cpp:264: error: 'ResumeProfilerEx' is not a member of 'v8::V8'
src/Engine.cpp:264: error: 'PROFILER_MODULE_CPU' is not a member of 'v8'
src/Engine.cpp:268: error: 'GetActiveProfilerModules' is not a member of 
'v8::V8'

This problem is related to V8 r8507. I am attaching a (not so clean) patch 
which solves this error for me but please take a deep look at it because I 
switched back to PauseProfiler and ResumeProfiler (the extended versions no 
longer exist) and removed GetActiveProfilerModules at all.

Problem #2

src/AST.h: In member function 'const std::string 
CAstTryCatchStatement::GetName() const':
src/AST.h:348: error: 'class v8::internal::TryCatchStatement' has no member 
named 'name'
src/AST.h: In member function 'boost::python::api::object 
CAstScope::GetReceiver() const':
src/AST.h:696: error: no matching function for call to 
'CAstVariableProxy::CAstVariableProxy(v8::internal::Variable*)'
src/AST.h:437: note: candidates are: 
CAstVariableProxy::CAstVariableProxy(v8::internal::VariableProxy*)
src/AST.h:435: note:                 CAstVariableProxy::CAstVariableProxy(const 
CAstVariableProxy&)

This problem seems related to r8496 and is more complex to solve because of the 
introduction of the scopes concept within the class TryCatchStatement so no 
patch is proposed.

Original issue reported on code.google.com by angelo.d...@gmail.com on 9 Jul 2011 at 11:14

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, v8 has changed its API, I have submitted a new version :)

Original comment by flier...@gmail.com on 10 Jul 2011 at 10:03