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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 | 1128 |
1129 void Debug::ClearStepNext() { | 1129 void Debug::ClearStepNext() { |
1130 thread_local_.last_step_action_ = StepNone; | 1130 thread_local_.last_step_action_ = StepNone; |
1131 thread_local_.last_statement_position_ = RelocInfo::kNoPosition; | 1131 thread_local_.last_statement_position_ = RelocInfo::kNoPosition; |
1132 thread_local_.last_fp_ = 0; | 1132 thread_local_.last_fp_ = 0; |
1133 } | 1133 } |
1134 | 1134 |
1135 | 1135 |
1136 bool Debug::EnsureCompiled(Handle<SharedFunctionInfo> shared) { | 1136 bool Debug::EnsureCompiled(Handle<SharedFunctionInfo> shared) { |
1137 if (shared->is_compiled()) return true; | 1137 if (shared->is_compiled()) return true; |
1138 return CompileLazyShared(shared, CLEAR_EXCEPTION); | 1138 return CompileLazyShared(shared, CLEAR_EXCEPTION, 0); |
1139 } | 1139 } |
1140 | 1140 |
1141 | 1141 |
1142 // Ensures the debug information is present for shared. | 1142 // Ensures the debug information is present for shared. |
1143 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared) { | 1143 bool Debug::EnsureDebugInfo(Handle<SharedFunctionInfo> shared) { |
1144 // Return if we already have the debug info for shared. | 1144 // Return if we already have the debug info for shared. |
1145 if (HasDebugInfo(shared)) return true; | 1145 if (HasDebugInfo(shared)) return true; |
1146 | 1146 |
1147 // Ensure shared in compiled. Return false if this failed. | 1147 // Ensure shared in compiled. Return false if this failed. |
1148 if (!EnsureCompiled(shared)) return false; | 1148 if (!EnsureCompiled(shared)) return false; |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 } | 1934 } |
1935 | 1935 |
1936 | 1936 |
1937 void LockingMessageQueue::Clear() { | 1937 void LockingMessageQueue::Clear() { |
1938 ScopedLock sl(lock_); | 1938 ScopedLock sl(lock_); |
1939 queue_.Clear(); | 1939 queue_.Clear(); |
1940 } | 1940 } |
1941 | 1941 |
1942 | 1942 |
1943 } } // namespace v8::internal | 1943 } } // namespace v8::internal |
OLD | NEW |