I am a Computer Science major, and I am currently working on V8 for a
course project. The aim of the project is to gain access in javascript
manipulation to create the AST and machine-language I have finished the
build process and have started with some of my own instrumentation. I am
not a contributor.
While putting some human understandable logging inside v8, I have put some
c++ code to log from inside the v8 to get the hiddenclass manipulation. My
code snipet in log.h under Logger class ->
// ==== User Defined Logging. ====
static Logger& logger(); //Singleton Object
void logEventName(const char* name);
void enterLog(const char* name);
void exitLog(const char* name);
While I am trying to use these functions in side
1. src/ia32/lithium-codegen-ia32.cc
2. src/ia32/full-codegen-ia32.cc
3. src/ia32/code-stubs-ia32.cc
they are compiling good but I am getting error in src/mksnapshot.cc.
Error :::
*LINK(target)
/google_code/v8/v8_3.25/out/ia32.release/mksnapshot.ia32/google_code/v8/v8_3.25/out/ia32.release/obj.target/v8_base.ia32/src/ia32/code-stubs-ia32.o:
In function
`v8::internal::BinaryOpICStub::InitializeInterfaceDescriptor(v8::internal::Isolate*,
v8::internal::CodeStubInterfaceDescriptor*)':code-stubs-ia32.cc:(.text._ZN2v88internal14BinaryOpICStub29InitializeInterfaceDescriptorEPNS0_7IsolateEPNS0_27CodeStubInterfaceDescriptorE+0x9):
undefined reference to
`v8::internal::Logger::logger()'/google_code/v8/v8_3.25/out/ia32.release/obj.target/v8_base.ia32/src/ia32/full-codegen-ia32.o:
In function
`v8::internal::FullCodeGenerator::EmitBinaryOp(v8::internal::BinaryOperation*,
v8::internal::Token::Value,
v8::internal::OverwriteMode)':full-codegen-ia32.cc:(.text._ZN2v88internal17FullCodeGenerator12EmitBinaryOpEPNS0_15BinaryOperationENS0_5Token5ValueENS0_13OverwriteModeE+0x50):
undefined
reference to `v8::internal::Logger::logger()'*
It looks like a linking error with the new function. I am using them
through namespace.
Code-usage:::
v8::internal::Logger::logger().logEventName("FullCodeGenerator::EmitInlineSmiBinaryOp");
Logger::logger().logEventName("FullCodeGenerator::EmitInlineSmiBinaryOp");
Some help will be appreciated to move through mksnapshot.
Or is there any better or inbuild way to log except the d8 shell flags that
also be a good help.
Thanks,
Dhiman Chakraborty
Saarland University, Germany
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.