OLD | NEW |
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 "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 | 1585 |
1586 delete this; | 1586 delete this; |
1587 | 1587 |
1588 // Restore the previous current isolate. | 1588 // Restore the previous current isolate. |
1589 SetIsolateThreadLocals(saved_isolate, saved_data); | 1589 SetIsolateThreadLocals(saved_isolate, saved_data); |
1590 } | 1590 } |
1591 | 1591 |
1592 | 1592 |
1593 void Isolate::GlobalTearDown() { | 1593 void Isolate::GlobalTearDown() { |
1594 delete thread_data_table_; | 1594 delete thread_data_table_; |
| 1595 thread_data_table_ = NULL; |
1595 } | 1596 } |
1596 | 1597 |
1597 | 1598 |
1598 void Isolate::Deinit() { | 1599 void Isolate::Deinit() { |
1599 if (state_ == INITIALIZED) { | 1600 if (state_ == INITIALIZED) { |
1600 TRACE_ISOLATE(deinit); | 1601 TRACE_ISOLATE(deinit); |
1601 | 1602 |
1602 debug()->Unload(); | 1603 debug()->Unload(); |
1603 | 1604 |
1604 FreeThreadResources(); | 1605 FreeThreadResources(); |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2415 if (prev_ && prev_->Intercept(flag)) return true; | 2416 if (prev_ && prev_->Intercept(flag)) return true; |
2416 // Then check whether this scope intercepts. | 2417 // Then check whether this scope intercepts. |
2417 if ((flag & intercept_mask_)) { | 2418 if ((flag & intercept_mask_)) { |
2418 intercepted_flags_ |= flag; | 2419 intercepted_flags_ |= flag; |
2419 return true; | 2420 return true; |
2420 } | 2421 } |
2421 return false; | 2422 return false; |
2422 } | 2423 } |
2423 | 2424 |
2424 } } // namespace v8::internal | 2425 } } // namespace v8::internal |
OLD | NEW |