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

Side by Side Diff: src/isolate.cc

Issue 23549010: Move global V8::IsDead() into the Isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/isolate.h ('k') | src/v8.h » ('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 // 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 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 global_handles_(NULL), 1785 global_handles_(NULL),
1786 eternal_handles_(NULL), 1786 eternal_handles_(NULL),
1787 context_switcher_(NULL), 1787 context_switcher_(NULL),
1788 thread_manager_(NULL), 1788 thread_manager_(NULL),
1789 fp_stubs_generated_(false), 1789 fp_stubs_generated_(false),
1790 has_installed_extensions_(false), 1790 has_installed_extensions_(false),
1791 string_tracker_(NULL), 1791 string_tracker_(NULL),
1792 regexp_stack_(NULL), 1792 regexp_stack_(NULL),
1793 date_cache_(NULL), 1793 date_cache_(NULL),
1794 code_stub_interface_descriptors_(NULL), 1794 code_stub_interface_descriptors_(NULL),
1795 has_fatal_error_(false),
1795 use_crankshaft_(true), 1796 use_crankshaft_(true),
1796 initialized_from_snapshot_(false), 1797 initialized_from_snapshot_(false),
1797 cpu_profiler_(NULL), 1798 cpu_profiler_(NULL),
1798 heap_profiler_(NULL), 1799 heap_profiler_(NULL),
1799 function_entry_hook_(NULL), 1800 function_entry_hook_(NULL),
1800 deferred_handles_head_(NULL), 1801 deferred_handles_head_(NULL),
1801 optimizing_compiler_thread_(this), 1802 optimizing_compiler_thread_(this),
1802 marking_thread_(NULL), 1803 marking_thread_(NULL),
1803 sweeper_thread_(NULL), 1804 sweeper_thread_(NULL),
1804 stress_deopt_count_(0) { 1805 stress_deopt_count_(0) {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 } 2142 }
2142 2143
2143 2144
2144 bool Isolate::Init(Deserializer* des) { 2145 bool Isolate::Init(Deserializer* des) {
2145 ASSERT(state_ != INITIALIZED); 2146 ASSERT(state_ != INITIALIZED);
2146 ASSERT(Isolate::Current() == this); 2147 ASSERT(Isolate::Current() == this);
2147 TRACE_ISOLATE(init); 2148 TRACE_ISOLATE(init);
2148 2149
2149 stress_deopt_count_ = FLAG_deopt_every_n_times; 2150 stress_deopt_count_ = FLAG_deopt_every_n_times;
2150 2151
2152 has_fatal_error_ = false;
2153
2151 use_crankshaft_ = FLAG_crankshaft 2154 use_crankshaft_ = FLAG_crankshaft
2152 && !Serializer::enabled() 2155 && !Serializer::enabled()
2153 && CPU::SupportsCrankshaft(); 2156 && CPU::SupportsCrankshaft();
2154 2157
2155 if (function_entry_hook() != NULL) { 2158 if (function_entry_hook() != NULL) {
2156 // When function entry hooking is in effect, we have to create the code 2159 // When function entry hooking is in effect, we have to create the code
2157 // stubs from scratch to get entry hooks, rather than loading the previously 2160 // stubs from scratch to get entry hooks, rather than loading the previously
2158 // generated stubs from disk. 2161 // generated stubs from disk.
2159 // If this assert fires, the initialization path has regressed. 2162 // If this assert fires, the initialization path has regressed.
2160 ASSERT(des == NULL); 2163 ASSERT(des == NULL);
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2532 2535
2533 #ifdef DEBUG 2536 #ifdef DEBUG
2534 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2537 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2535 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2538 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2536 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2539 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2537 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2540 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2538 #undef ISOLATE_FIELD_OFFSET 2541 #undef ISOLATE_FIELD_OFFSET
2539 #endif 2542 #endif
2540 2543
2541 } } // namespace v8::internal 2544 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698