| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 3158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3169 queue_.Put(message); | 3169 queue_.Put(message); |
| 3170 logger_->DebugEvent("Put", message.text()); | 3170 logger_->DebugEvent("Put", message.text()); |
| 3171 } | 3171 } |
| 3172 | 3172 |
| 3173 | 3173 |
| 3174 void LockingCommandMessageQueue::Clear() { | 3174 void LockingCommandMessageQueue::Clear() { |
| 3175 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3175 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3176 queue_.Clear(); | 3176 queue_.Clear(); |
| 3177 } | 3177 } |
| 3178 | 3178 |
| 3179 |
| 3180 void DebugCodegen::RecordRelocInfo(MacroAssembler* masm, |
| 3181 DebugCodegen::SlotLocation location, |
| 3182 int call_argc) { |
| 3183 switch (location) { |
| 3184 case PLAIN_DEBUG_BREAK: |
| 3185 masm->RecordDebugBreakSlot(); |
| 3186 return; |
| 3187 case DEBUG_BREAK_AT_CALL: |
| 3188 DCHECK_LE(0, call_argc); |
| 3189 masm->RecordDebugBreakSlotForCall(call_argc); |
| 3190 return; |
| 3191 case DEBUG_BREAK_AT_CONSTRUCT_CALL: |
| 3192 masm->RecordDebugBreakSlotForConstructCall(); |
| 3193 return; |
| 3194 } |
| 3195 } |
| 3196 |
| 3179 } // namespace internal | 3197 } // namespace internal |
| 3180 } // namespace v8 | 3198 } // namespace v8 |
| OLD | NEW |