OLD | NEW |
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 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() |
1811 && CPU::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 |
1821 // The initialization process does not handle memory exhaustion. | 1821 // The initialization process does not handle memory exhaustion. |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |