Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: src/debug.cc

Issue 297303004: Revert 21502 - "Move OS::MemCopy and OS::MemMove out of platform to utils" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/conversions-inl.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // TODO(isolates): frames_are_dropped_? 508 // TODO(isolates): frames_are_dropped_?
509 thread_local_.debugger_entry_ = NULL; 509 thread_local_.debugger_entry_ = NULL;
510 thread_local_.has_pending_interrupt_ = false; 510 thread_local_.has_pending_interrupt_ = false;
511 thread_local_.restarter_frame_function_pointer_ = NULL; 511 thread_local_.restarter_frame_function_pointer_ = NULL;
512 thread_local_.promise_on_stack_ = NULL; 512 thread_local_.promise_on_stack_ = NULL;
513 } 513 }
514 514
515 515
516 char* Debug::ArchiveDebug(char* storage) { 516 char* Debug::ArchiveDebug(char* storage) {
517 char* to = storage; 517 char* to = storage;
518 MemCopy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal)); 518 OS::MemCopy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal));
519 ThreadInit(); 519 ThreadInit();
520 return storage + ArchiveSpacePerThread(); 520 return storage + ArchiveSpacePerThread();
521 } 521 }
522 522
523 523
524 char* Debug::RestoreDebug(char* storage) { 524 char* Debug::RestoreDebug(char* storage) {
525 char* from = storage; 525 char* from = storage;
526 MemCopy(reinterpret_cast<char*>(&thread_local_), from, sizeof(ThreadLocal)); 526 OS::MemCopy(
527 reinterpret_cast<char*>(&thread_local_), from, sizeof(ThreadLocal));
527 return storage + ArchiveSpacePerThread(); 528 return storage + ArchiveSpacePerThread();
528 } 529 }
529 530
530 531
531 int Debug::ArchiveSpacePerThread() { 532 int Debug::ArchiveSpacePerThread() {
532 return sizeof(ThreadLocal); 533 return sizeof(ThreadLocal);
533 } 534 }
534 535
535 536
536 // Frame structure (conforms InternalFrame structure): 537 // Frame structure (conforms InternalFrame structure):
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3542 logger_->DebugEvent("Put", message.text()); 3543 logger_->DebugEvent("Put", message.text());
3543 } 3544 }
3544 3545
3545 3546
3546 void LockingCommandMessageQueue::Clear() { 3547 void LockingCommandMessageQueue::Clear() {
3547 LockGuard<Mutex> lock_guard(&mutex_); 3548 LockGuard<Mutex> lock_guard(&mutex_);
3548 queue_.Clear(); 3549 queue_.Clear();
3549 } 3550 }
3550 3551
3551 } } // namespace v8::internal 3552 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/conversions-inl.h ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698