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

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: Rebased. Feedback. 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
« no previous file with comments | « src/incremental-marking.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "v8.h" 7 #include "v8.h"
8 8
9 #include "ast.h" 9 #include "ast.h"
10 #include "bootstrapper.h" 10 #include "bootstrapper.h"
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 1777
1778 bool Isolate::Init(Deserializer* des) { 1778 bool Isolate::Init(Deserializer* des) {
1779 ASSERT(state_ != INITIALIZED); 1779 ASSERT(state_ != INITIALIZED);
1780 TRACE_ISOLATE(init); 1780 TRACE_ISOLATE(init);
1781 1781
1782 stress_deopt_count_ = FLAG_deopt_every_n_times; 1782 stress_deopt_count_ = FLAG_deopt_every_n_times;
1783 1783
1784 has_fatal_error_ = false; 1784 has_fatal_error_ = false;
1785 1785
1786 use_crankshaft_ = FLAG_crankshaft 1786 use_crankshaft_ = FLAG_crankshaft
1787 && !Serializer::enabled() 1787 && !Serializer::enabled(this)
1788 && CpuFeatures::SupportsCrankshaft(); 1788 && CpuFeatures::SupportsCrankshaft();
1789 1789
1790 if (function_entry_hook() != NULL) { 1790 if (function_entry_hook() != NULL) {
1791 // When function entry hooking is in effect, we have to create the code 1791 // When function entry hooking is in effect, we have to create the code
1792 // stubs from scratch to get entry hooks, rather than loading the previously 1792 // stubs from scratch to get entry hooks, rather than loading the previously
1793 // generated stubs from disk. 1793 // generated stubs from disk.
1794 // If this assert fires, the initialization path has regressed. 1794 // If this assert fires, the initialization path has regressed.
1795 ASSERT(des == NULL); 1795 ASSERT(des == NULL);
1796 } 1796 }
1797 1797
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 // Now that the heap is consistent, it's OK to generate the code for the 1969 // Now that the heap is consistent, it's OK to generate the code for the
1970 // deopt entry table that might have been referred to by optimized code in 1970 // deopt entry table that might have been referred to by optimized code in
1971 // the snapshot. 1971 // the snapshot.
1972 HandleScope scope(this); 1972 HandleScope scope(this);
1973 Deoptimizer::EnsureCodeForDeoptimizationEntry( 1973 Deoptimizer::EnsureCodeForDeoptimizationEntry(
1974 this, 1974 this,
1975 Deoptimizer::LAZY, 1975 Deoptimizer::LAZY,
1976 kDeoptTableSerializeEntryCount - 1); 1976 kDeoptTableSerializeEntryCount - 1);
1977 } 1977 }
1978 1978
1979 if (!Serializer::enabled()) { 1979 if (!Serializer::enabled(this)) {
1980 // Ensure that all stubs which need to be generated ahead of time, but 1980 // Ensure that all stubs which need to be generated ahead of time, but
1981 // cannot be serialized into the snapshot have been generated. 1981 // cannot be serialized into the snapshot have been generated.
1982 HandleScope scope(this); 1982 HandleScope scope(this);
1983 CodeStub::GenerateFPStubs(this); 1983 CodeStub::GenerateFPStubs(this);
1984 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this); 1984 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(this);
1985 StubFailureTrampolineStub::GenerateAheadOfTime(this); 1985 StubFailureTrampolineStub::GenerateAheadOfTime(this);
1986 // Ensure interface descriptors are initialized even when stubs have been 1986 // Ensure interface descriptors are initialized even when stubs have been
1987 // deserialized out of the snapshot without using the graph builder. 1987 // deserialized out of the snapshot without using the graph builder.
1988 FastCloneShallowArrayStub::InstallDescriptors(this); 1988 FastCloneShallowArrayStub::InstallDescriptors(this);
1989 BinaryOpICStub::InstallDescriptors(this); 1989 BinaryOpICStub::InstallDescriptors(this);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 handle_scope_implementer()->IncrementCallDepth(); 2247 handle_scope_implementer()->IncrementCallDepth();
2248 if (run_microtasks) Execution::RunMicrotasks(this); 2248 if (run_microtasks) Execution::RunMicrotasks(this);
2249 for (int i = 0; i < call_completed_callbacks_.length(); i++) { 2249 for (int i = 0; i < call_completed_callbacks_.length(); i++) {
2250 call_completed_callbacks_.at(i)(); 2250 call_completed_callbacks_.at(i)();
2251 } 2251 }
2252 handle_scope_implementer()->DecrementCallDepth(); 2252 handle_scope_implementer()->DecrementCallDepth();
2253 } 2253 }
2254 2254
2255 2255
2256 } } // namespace v8::internal 2256 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698