OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 external_callback_ = NULL; | 65 external_callback_ = NULL; |
66 #endif | 66 #endif |
67 #ifdef ENABLE_VMSTATE_TRACKING | 67 #ifdef ENABLE_VMSTATE_TRACKING |
68 current_vm_state_ = EXTERNAL; | 68 current_vm_state_ = EXTERNAL; |
69 #endif | 69 #endif |
70 try_catch_handler_address_ = NULL; | 70 try_catch_handler_address_ = NULL; |
71 context_ = NULL; | 71 context_ = NULL; |
72 int id = Isolate::Current()->thread_manager()->CurrentId(); | 72 int id = Isolate::Current()->thread_manager()->CurrentId(); |
73 thread_id_ = (id == 0) ? ThreadManager::kInvalidId : id; | 73 thread_id_ = (id == 0) ? ThreadManager::kInvalidId : id; |
74 external_caught_exception_ = false; | 74 external_caught_exception_ = false; |
75 in_exception_reporting_ = false; | |
76 failed_access_check_callback_ = NULL; | 75 failed_access_check_callback_ = NULL; |
77 save_context_ = NULL; | 76 save_context_ = NULL; |
78 catcher_ = NULL; | 77 catcher_ = NULL; |
79 } | 78 } |
80 | 79 |
81 | 80 |
82 Address Isolate::get_address_from_id(Isolate::AddressId id) { | 81 Address Isolate::get_address_from_id(Isolate::AddressId id) { |
83 return isolate_addresses_[id]; | 82 return isolate_addresses_[id]; |
84 } | 83 } |
85 | 84 |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 thread_local_top()->simulator_ = Simulator::current(this); | 955 thread_local_top()->simulator_ = Simulator::current(this); |
957 #endif | 956 #endif |
958 #endif | 957 #endif |
959 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { | 958 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
960 RuntimeProfiler::IsolateEnteredJS(this); | 959 RuntimeProfiler::IsolateEnteredJS(this); |
961 } | 960 } |
962 return from + sizeof(ThreadLocalTop); | 961 return from + sizeof(ThreadLocalTop); |
963 } | 962 } |
964 | 963 |
965 } } // namespace v8::internal | 964 } } // namespace v8::internal |
OLD | NEW |