| 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 failed_access_check_callback_ = NULL; | 74 failed_access_check_callback_ = NULL; |
| 76 save_context_ = NULL; | 75 save_context_ = NULL; |
| 77 catcher_ = NULL; | 76 catcher_ = NULL; |
| 78 } | 77 } |
| 79 | 78 |
| 80 | 79 |
| 81 Address Isolate::get_address_from_id(Isolate::AddressId id) { | 80 Address Isolate::get_address_from_id(Isolate::AddressId id) { |
| 82 return isolate_addresses_[id]; | 81 return isolate_addresses_[id]; |
| 83 } | 82 } |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 thread_local_top()->simulator_ = Simulator::current(this); | 954 thread_local_top()->simulator_ = Simulator::current(this); |
| 956 #endif | 955 #endif |
| 957 #endif | 956 #endif |
| 958 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { | 957 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
| 959 RuntimeProfiler::IsolateEnteredJS(this); | 958 RuntimeProfiler::IsolateEnteredJS(this); |
| 960 } | 959 } |
| 961 return from + sizeof(ThreadLocalTop); | 960 return from + sizeof(ThreadLocalTop); |
| 962 } | 961 } |
| 963 | 962 |
| 964 } } // namespace v8::internal | 963 } } // namespace v8::internal |
| OLD | NEW |