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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 v8::TryCatch* ThreadLocalTop::TryCatchHandler() { | 48 v8::TryCatch* ThreadLocalTop::TryCatchHandler() { |
49 return TRY_CATCH_FROM_ADDRESS(try_catch_handler_address()); | 49 return TRY_CATCH_FROM_ADDRESS(try_catch_handler_address()); |
50 } | 50 } |
51 | 51 |
52 | 52 |
53 void ThreadLocalTop::Initialize() { | 53 void ThreadLocalTop::Initialize() { |
54 c_entry_fp_ = 0; | 54 c_entry_fp_ = 0; |
55 handler_ = 0; | 55 handler_ = 0; |
56 #ifdef USE_SIMULATOR | 56 #ifdef USE_SIMULATOR |
57 #ifdef V8_TARGET_ARCH_ARM | 57 #ifdef V8_TARGET_ARCH_ARM |
58 simulator_ = Simulator::current(Isolate::Current()); | 58 simulator_ = Simulator::current(isolate_); |
59 #elif V8_TARGET_ARCH_MIPS | 59 #elif V8_TARGET_ARCH_MIPS |
60 simulator_ = Simulator::current(Isolate::Current()); | 60 simulator_ = Simulator::current(isolate_); |
61 #endif | 61 #endif |
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; |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 thread_local_top()->simulator_ = Simulator::current(this); | 954 thread_local_top()->simulator_ = Simulator::current(this); |
955 #endif | 955 #endif |
956 #endif | 956 #endif |
957 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { | 957 if (RuntimeProfiler::IsEnabled() && current_vm_state() == JS) { |
958 RuntimeProfiler::IsolateEnteredJS(this); | 958 RuntimeProfiler::IsolateEnteredJS(this); |
959 } | 959 } |
960 return from + sizeof(ThreadLocalTop); | 960 return from + sizeof(ThreadLocalTop); |
961 } | 961 } |
962 | 962 |
963 } } // namespace v8::internal | 963 } } // namespace v8::internal |
OLD | NEW |