Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: src/isolate.cc

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 1800
1801 bool Isolate::Init(Deserializer* des) { 1801 bool Isolate::Init(Deserializer* des) {
1802 ASSERT(state_ != INITIALIZED); 1802 ASSERT(state_ != INITIALIZED);
1803 TRACE_ISOLATE(init); 1803 TRACE_ISOLATE(init);
1804 1804
1805 stress_deopt_count_ = FLAG_deopt_every_n_times; 1805 stress_deopt_count_ = FLAG_deopt_every_n_times;
1806 1806
1807 has_fatal_error_ = false; 1807 has_fatal_error_ = false;
1808 1808
1809 use_crankshaft_ = FLAG_crankshaft 1809 use_crankshaft_ = FLAG_crankshaft
1810 && !Serializer::enabled() 1810 && !Serializer::enabled(this)
1811 && CpuFeatures::SupportsCrankshaft(); 1811 && CpuFeatures::SupportsCrankshaft();
1812 1812
1813 if (function_entry_hook() != NULL) { 1813 if (function_entry_hook() != NULL) {
1814 // When function entry hooking is in effect, we have to create the code 1814 // When function entry hooking is in effect, we have to create the code
1815 // stubs from scratch to get entry hooks, rather than loading the previously 1815 // stubs from scratch to get entry hooks, rather than loading the previously
1816 // generated stubs from disk. 1816 // generated stubs from disk.
1817 // If this assert fires, the initialization path has regressed. 1817 // If this assert fires, the initialization path has regressed.
1818 ASSERT(des == NULL); 1818 ASSERT(des == NULL);
1819 } 1819 }
1820 1820
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 // Now that the heap is consistent, it's OK to generate the code for the 1992 // Now that the heap is consistent, it's OK to generate the code for the
1993 // deopt entry table that might have been referred to by optimized code in 1993 // deopt entry table that might have been referred to by optimized code in
1994 // the snapshot. 1994 // the snapshot.
1995 HandleScope scope(this); 1995 HandleScope scope(this);
1996 Deoptimizer::EnsureCodeForDeoptimizationEntry( 1996 Deoptimizer::EnsureCodeForDeoptimizationEntry(
1997 this, 1997 this,
1998 Deoptimizer::LAZY, 1998 Deoptimizer::LAZY,
1999 kDeoptTableSerializeEntryCount - 1); 1999 kDeoptTableSerializeEntryCount - 1);
2000 } 2000 }
2001 2001
2002 if (!Serializer::enabled()) { 2002 if (!Serializer::enabled(this)) {
2003 // Ensure that all stubs which need to be generated ahead of time, but 2003 // Ensure that all stubs which need to be generated ahead of time, but
2004 // cannot be serialized into the snapshot have been generated. 2004 // cannot be serialized into the snapshot have been generated.
2005 HandleScope scope(this); 2005 HandleScope scope(this);
2006 CodeStub::GenerateFPStubs(this); 2006 CodeStub::GenerateFPStubs(this);
2007 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 2007 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
2008 StubFailureTrampolineStub::GenerateAheadOfTime(this); 2008 StubFailureTrampolineStub::GenerateAheadOfTime(this);
2009 // Ensure interface descriptors are initialized even when stubs have been 2009 // Ensure interface descriptors are initialized even when stubs have been
2010 // deserialized out of the snapshot without using the graph builder. 2010 // deserialized out of the snapshot without using the graph builder.
2011 FastCloneShallowArrayStub::InstallDescriptors(this); 2011 FastCloneShallowArrayStub::InstallDescriptors(this);
2012 BinaryOpICStub::InstallDescriptors(this); 2012 BinaryOpICStub::InstallDescriptors(this);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 handle_scope_implementer()->IncrementCallDepth(); 2270 handle_scope_implementer()->IncrementCallDepth();
2271 if (run_microtasks) Execution::RunMicrotasks(this); 2271 if (run_microtasks) Execution::RunMicrotasks(this);
2272 for (int i = 0; i < call_completed_callbacks_.length(); i++) { 2272 for (int i = 0; i < call_completed_callbacks_.length(); i++) {
2273 call_completed_callbacks_.at(i)(); 2273 call_completed_callbacks_.at(i)();
2274 } 2274 }
2275 handle_scope_implementer()->DecrementCallDepth(); 2275 handle_scope_implementer()->DecrementCallDepth();
2276 } 2276 }
2277 2277
2278 2278
2279 } } // namespace v8::internal 2279 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | src/lithium-allocator.cc » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698