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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 Handle<SharedFunctionInfo>(JSFunction::cast(frame->function())->shared()); | 1259 Handle<SharedFunctionInfo>(JSFunction::cast(frame->function())->shared()); |
1260 if (!EnsureDebugInfo(shared)) { | 1260 if (!EnsureDebugInfo(shared)) { |
1261 // Return if we failed to retrieve the debug info. | 1261 // Return if we failed to retrieve the debug info. |
1262 return; | 1262 return; |
1263 } | 1263 } |
1264 Handle<DebugInfo> debug_info = GetDebugInfo(shared); | 1264 Handle<DebugInfo> debug_info = GetDebugInfo(shared); |
1265 Handle<Code> code(debug_info->code()); | 1265 Handle<Code> code(debug_info->code()); |
1266 Handle<Code> original_code(debug_info->original_code()); | 1266 Handle<Code> original_code(debug_info->original_code()); |
1267 #ifdef DEBUG | 1267 #ifdef DEBUG |
1268 // Get the code which is actually executing. | 1268 // Get the code which is actually executing. |
1269 Handle<Code> frame_code(frame->FindCode()); | 1269 Handle<Code> frame_code(frame->code()); |
1270 ASSERT(frame_code.is_identical_to(code)); | 1270 ASSERT(frame_code.is_identical_to(code)); |
1271 #endif | 1271 #endif |
1272 | 1272 |
1273 // Find the call address in the running code. This address holds the call to | 1273 // Find the call address in the running code. This address holds the call to |
1274 // either a DebugBreakXXX or to the debug break return entry code if the | 1274 // either a DebugBreakXXX or to the debug break return entry code if the |
1275 // break point is still active after processing the break point. | 1275 // break point is still active after processing the break point. |
1276 Address addr = frame->pc() - Assembler::kTargetAddrToReturnAddrDist; | 1276 Address addr = frame->pc() - Assembler::kTargetAddrToReturnAddrDist; |
1277 | 1277 |
1278 // Check if the location is at JS exit. | 1278 // Check if the location is at JS exit. |
1279 bool at_js_exit = false; | 1279 bool at_js_exit = false; |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2107 } | 2107 } |
2108 | 2108 |
2109 | 2109 |
2110 void LockingMessageQueue::Clear() { | 2110 void LockingMessageQueue::Clear() { |
2111 ScopedLock sl(lock_); | 2111 ScopedLock sl(lock_); |
2112 queue_.Clear(); | 2112 queue_.Clear(); |
2113 } | 2113 } |
2114 | 2114 |
2115 | 2115 |
2116 } } // namespace v8::internal | 2116 } } // namespace v8::internal |
OLD | NEW |