How can I disable that behaviour? I'm porting v8 to new architecture and I don't want to implement Hydrogen/Lithium before full-codegen.
On Tuesday, May 24, 2016 at 2:16:25 PM UTC+6, Ben Noordhuis wrote: > > On Tue, May 24, 2016 at 9:59 AM, <[email protected] <javascript:>> > wrote: > > Hi all. > > > > My full-codegen.cc: > > > > bool FullCodeGenerator::MakeCode(CompilationInfo* info) { > > UNREACHABLE(); > > Isolate* isolate = info->isolate(); > > ... > > > > I run d8 and I see in call stack > > > > #5 0x000000000258c1f0 in > > v8::internal::LChunkBuilder::DoAllocate(v8::internal::HAllocate*) () > > #6 0x00000000012b74e8 in > > v8::internal::HAllocate::CompileToLithium(v8::internal::LChunkBuilder*) > () > > #7 0x00000000025951f8 in > > > v8::internal::LChunkBuilder::VisitInstruction(v8::internal::HInstruction*) > > () > > #8 0x0000000002597b68 in > > v8::internal::LChunkBuilder::DoBasicBlock(v8::internal::HBasicBlock*, > > v8::internal::HBasicBlock*) () > > #9 0x000000000258bb28 in v8::internal::LChunkBuilder::Build() () > > #10 0x000000000147dd10 in > > v8::internal::LChunk::NewChunk(v8::internal::HGraph*) () > > #11 0x0000000000d843e8 in > > > _INTERNAL_22_code_stubs_hydrogen_cc_b1190256::v8::internal::OptimizeGraph(_INTERNAL_22_code_stubs_hydrogen_cc_b1190256::v8::internal::HGraph*) > > > > () > > #12 0x0000000000d56e78 in > > v8::internal::ArrayNoArgumentConstructorStub::GenerateCode() () > > #13 0x0000000000d0e5c8 in v8::internal::CodeStub::GetCode() () > > #14 0x00000000026012a0 in void > > > _INTERNAL_17_code_stubs_e2k_cc_8d6fa455::v8::internal::ArrayConstructorStubAheadOfTimeHelper<_INTERNAL_17_code_stubs_e2k_cc_8d6fa455::v8::internal::ArrayNoArgumentConstructorStub>(_INTERNAL_17_code_stubs_e2k_cc_8d6fa455::v8::internal::Isolate*) > > > > () > > #15 0x00000000025fe9f8 in > > v8::internal::CodeStub::GenerateStubsAheadOfTime(v8::internal::Isolate*) > () > > #16 0x0000000001814db8 in v8::internal::Heap::CreateFixedStubs() () > > #17 0x0000000001811e28 in v8::internal::Heap::CreateInitialObjects() () > > #18 0x00000000017e5ef8 in v8::internal::Heap::CreateHeapObjects() () > > #19 0x0000000001b67b50 in > > v8::internal::Isolate::Init(v8::internal::Deserializer*) () > > #20 0x0000000000aacba0 in v8::Isolate::New(v8::Isolate::CreateParams > const&) > > () > > #21 0x0000000000913ed8 in v8::Shell::Main(int, char**) () > > #22 0x0000000000908fc8 in main () > > > > Why Lithium code's is called? Is Lithium a part of crankshaft compiler, > > right? > > What is code compiled before full-codegen? > > Those are the stubs for `new Array()`, `new Array(42)`, etc. Yes, > they are generated by Hydrogen/Lithium. > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" 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.
