| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   566   thread_local_.break_frame_id_ = StackFrame::NO_ID; |   566   thread_local_.break_frame_id_ = StackFrame::NO_ID; | 
|   567   thread_local_.last_step_action_ = StepNone; |   567   thread_local_.last_step_action_ = StepNone; | 
|   568   thread_local_.last_statement_position_ = RelocInfo::kNoPosition; |   568   thread_local_.last_statement_position_ = RelocInfo::kNoPosition; | 
|   569   thread_local_.step_count_ = 0; |   569   thread_local_.step_count_ = 0; | 
|   570   thread_local_.last_fp_ = 0; |   570   thread_local_.last_fp_ = 0; | 
|   571   thread_local_.queued_step_count_ = 0; |   571   thread_local_.queued_step_count_ = 0; | 
|   572   thread_local_.step_into_fp_ = 0; |   572   thread_local_.step_into_fp_ = 0; | 
|   573   thread_local_.step_out_fp_ = 0; |   573   thread_local_.step_out_fp_ = 0; | 
|   574   // TODO(isolates): frames_are_dropped_? |   574   // TODO(isolates): frames_are_dropped_? | 
|   575   base::NoBarrier_Store(&thread_local_.current_debug_scope_, |   575   base::NoBarrier_Store(&thread_local_.current_debug_scope_, | 
|   576                         static_cast<base::AtomicWord>(NULL)); |   576                         static_cast<base::AtomicWord>(0)); | 
|   577   thread_local_.restarter_frame_function_pointer_ = NULL; |   577   thread_local_.restarter_frame_function_pointer_ = NULL; | 
|   578 } |   578 } | 
|   579  |   579  | 
|   580  |   580  | 
|   581 char* Debug::ArchiveDebug(char* storage) { |   581 char* Debug::ArchiveDebug(char* storage) { | 
|   582   char* to = storage; |   582   char* to = storage; | 
|   583   MemCopy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal)); |   583   MemCopy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal)); | 
|   584   ThreadInit(); |   584   ThreadInit(); | 
|   585   return storage + ArchiveSpacePerThread(); |   585   return storage + ArchiveSpacePerThread(); | 
|   586 } |   586 } | 
| (...skipping 2905 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3492   logger_->DebugEvent("Put", message.text()); |  3492   logger_->DebugEvent("Put", message.text()); | 
|  3493 } |  3493 } | 
|  3494  |  3494  | 
|  3495  |  3495  | 
|  3496 void LockingCommandMessageQueue::Clear() { |  3496 void LockingCommandMessageQueue::Clear() { | 
|  3497   base::LockGuard<base::Mutex> lock_guard(&mutex_); |  3497   base::LockGuard<base::Mutex> lock_guard(&mutex_); | 
|  3498   queue_.Clear(); |  3498   queue_.Clear(); | 
|  3499 } |  3499 } | 
|  3500  |  3500  | 
|  3501 } }  // namespace v8::internal |  3501 } }  // namespace v8::internal | 
| OLD | NEW |