| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 failed_access_check_callback_ = NULL; | 70 failed_access_check_callback_ = NULL; |
| 71 save_context_ = NULL; | 71 save_context_ = NULL; |
| 72 catcher_ = NULL; | 72 catcher_ = NULL; |
| 73 } | 73 } |
| 74 | 74 |
| 75 | 75 |
| 76 void ThreadLocalTop::Initialize() { | 76 void ThreadLocalTop::Initialize() { |
| 77 InitializeInternal(); | 77 InitializeInternal(); |
| 78 #ifdef USE_SIMULATOR | 78 #ifdef USE_SIMULATOR |
| 79 #ifdef V8_TARGET_ARCH_ARM | 79 #ifdef V8_TARGET_ARCH_ARM |
| 80 simulator_ = Simulator::current(Isolate::Current()); | 80 simulator_ = Simulator::current(isolate_); |
| 81 #elif V8_TARGET_ARCH_MIPS | 81 #elif V8_TARGET_ARCH_MIPS |
| 82 simulator_ = Simulator::current(Isolate::Current()); | 82 simulator_ = Simulator::current(isolate_); |
| 83 #endif | 83 #endif |
| 84 #endif | 84 #endif |
| 85 thread_id_ = ThreadId::Current(); | 85 thread_id_ = ThreadId::Current(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 | 88 |
| 89 v8::TryCatch* ThreadLocalTop::TryCatchHandler() { | 89 v8::TryCatch* ThreadLocalTop::TryCatchHandler() { |
| 90 return TRY_CATCH_FROM_ADDRESS(try_catch_handler_address()); | 90 return TRY_CATCH_FROM_ADDRESS(try_catch_handler_address()); |
| 91 } | 91 } |
| 92 | 92 |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 thread_local_top()->simulator_ = Simulator::current(this); | 968 thread_local_top()->simulator_ = Simulator::current(this); |
| 969 #endif | 969 #endif |
| 970 #endif | 970 #endif |
| 971 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { | 971 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
| 972 RuntimeProfiler::IsolateEnteredJS(this); | 972 RuntimeProfiler::IsolateEnteredJS(this); |
| 973 } | 973 } |
| 974 return from + sizeof(ThreadLocalTop); | 974 return from + sizeof(ThreadLocalTop); |
| 975 } | 975 } |
| 976 | 976 |
| 977 } } // namespace v8::internal | 977 } } // namespace v8::internal |
| OLD | NEW |