| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "api.h" | 7 #include "api.h" |
| 8 #include "arguments.h" | 8 #include "arguments.h" |
| 9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
| 10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 thread_local_.step_count_ = 0; | 504 thread_local_.step_count_ = 0; |
| 505 thread_local_.last_fp_ = 0; | 505 thread_local_.last_fp_ = 0; |
| 506 thread_local_.queued_step_count_ = 0; | 506 thread_local_.queued_step_count_ = 0; |
| 507 thread_local_.step_into_fp_ = 0; | 507 thread_local_.step_into_fp_ = 0; |
| 508 thread_local_.step_out_fp_ = 0; | 508 thread_local_.step_out_fp_ = 0; |
| 509 thread_local_.after_break_target_ = 0; | 509 thread_local_.after_break_target_ = 0; |
| 510 // TODO(isolates): frames_are_dropped_? | 510 // TODO(isolates): frames_are_dropped_? |
| 511 thread_local_.debugger_entry_ = NULL; | 511 thread_local_.debugger_entry_ = NULL; |
| 512 thread_local_.has_pending_interrupt_ = false; | 512 thread_local_.has_pending_interrupt_ = false; |
| 513 thread_local_.restarter_frame_function_pointer_ = NULL; | 513 thread_local_.restarter_frame_function_pointer_ = NULL; |
| 514 |
| 515 promise_catch_handlers_.Clear(); |
| 516 promise_getters_.Clear(); |
| 514 } | 517 } |
| 515 | 518 |
| 516 | 519 |
| 517 char* Debug::ArchiveDebug(char* storage) { | 520 char* Debug::ArchiveDebug(char* storage) { |
| 518 char* to = storage; | 521 char* to = storage; |
| 519 OS::MemCopy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal)); | 522 OS::MemCopy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal)); |
| 520 ThreadInit(); | 523 ThreadInit(); |
| 521 return storage + ArchiveSpacePerThread(); | 524 return storage + ArchiveSpacePerThread(); |
| 522 } | 525 } |
| 523 | 526 |
| (...skipping 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3544 logger_->DebugEvent("Put", message.text()); | 3547 logger_->DebugEvent("Put", message.text()); |
| 3545 } | 3548 } |
| 3546 | 3549 |
| 3547 | 3550 |
| 3548 void LockingCommandMessageQueue::Clear() { | 3551 void LockingCommandMessageQueue::Clear() { |
| 3549 LockGuard<Mutex> lock_guard(&mutex_); | 3552 LockGuard<Mutex> lock_guard(&mutex_); |
| 3550 queue_.Clear(); | 3553 queue_.Clear(); |
| 3551 } | 3554 } |
| 3552 | 3555 |
| 3553 } } // namespace v8::internal | 3556 } } // namespace v8::internal |
| OLD | NEW |