| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #endif | 62 #endif |
| 63 #ifdef ENABLE_LOGGING_AND_PROFILING | 63 #ifdef ENABLE_LOGGING_AND_PROFILING |
| 64 js_entry_sp_ = NULL; | 64 js_entry_sp_ = NULL; |
| 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 thread_id_ = ThreadId::Current(); |
| 73 thread_id_ = (id == 0) ? ThreadManager::kInvalidId : id; | |
| 74 external_caught_exception_ = false; | 73 external_caught_exception_ = false; |
| 75 in_exception_reporting_ = false; | 74 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]; |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 thread_local_top()->simulator_ = Simulator::current(this); | 960 thread_local_top()->simulator_ = Simulator::current(this); |
| 962 #endif | 961 #endif |
| 963 #endif | 962 #endif |
| 964 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { | 963 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
| 965 RuntimeProfiler::IsolateEnteredJS(this); | 964 RuntimeProfiler::IsolateEnteredJS(this); |
| 966 } | 965 } |
| 967 return from + sizeof(ThreadLocalTop); | 966 return from + sizeof(ThreadLocalTop); |
| 968 } | 967 } |
| 969 | 968 |
| 970 } } // namespace v8::internal | 969 } } // namespace v8::internal |
| OLD | NEW |