| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 | 424 |
| 425 // Restore the previous current isolate. | 425 // Restore the previous current isolate. |
| 426 SetIsolateThreadLocals(saved_isolate, saved_data); | 426 SetIsolateThreadLocals(saved_isolate, saved_data); |
| 427 } | 427 } |
| 428 | 428 |
| 429 | 429 |
| 430 void Isolate::Deinit() { | 430 void Isolate::Deinit() { |
| 431 if (state_ == INITIALIZED) { | 431 if (state_ == INITIALIZED) { |
| 432 TRACE_ISOLATE(deinit); | 432 TRACE_ISOLATE(deinit); |
| 433 | 433 |
| 434 if (FLAG_time_hydrogen) HStatistics::Instance()->Print(); | 434 if (FLAG_hydrogen_stats) HStatistics::Instance()->Print(); |
| 435 | 435 |
| 436 // We must stop the logger before we tear down other components. | 436 // We must stop the logger before we tear down other components. |
| 437 logger_->EnsureTickerStopped(); | 437 logger_->EnsureTickerStopped(); |
| 438 | 438 |
| 439 delete deoptimizer_data_; | 439 delete deoptimizer_data_; |
| 440 deoptimizer_data_ = NULL; | 440 deoptimizer_data_ = NULL; |
| 441 if (FLAG_preemption) { | 441 if (FLAG_preemption) { |
| 442 v8::Locker locker; | 442 v8::Locker locker; |
| 443 v8::Locker::StopPreemption(); | 443 v8::Locker::StopPreemption(); |
| 444 } | 444 } |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 | 804 |
| 805 #ifdef DEBUG | 805 #ifdef DEBUG |
| 806 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ | 806 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ |
| 807 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); | 807 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); |
| 808 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) | 808 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) |
| 809 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) | 809 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) |
| 810 #undef ISOLATE_FIELD_OFFSET | 810 #undef ISOLATE_FIELD_OFFSET |
| 811 #endif | 811 #endif |
| 812 | 812 |
| 813 } } // namespace v8::internal | 813 } } // namespace v8::internal |
| OLD | NEW |