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

Side by Side Diff: src/debug.cc

Issue 3164020: Fix uninitialized field in Debug::ThreadInit(). (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 thread_local_.break_frame_id_ = StackFrame::NO_ID; 544 thread_local_.break_frame_id_ = StackFrame::NO_ID;
545 thread_local_.last_step_action_ = StepNone; 545 thread_local_.last_step_action_ = StepNone;
546 thread_local_.last_statement_position_ = RelocInfo::kNoPosition; 546 thread_local_.last_statement_position_ = RelocInfo::kNoPosition;
547 thread_local_.step_count_ = 0; 547 thread_local_.step_count_ = 0;
548 thread_local_.last_fp_ = 0; 548 thread_local_.last_fp_ = 0;
549 thread_local_.step_into_fp_ = 0; 549 thread_local_.step_into_fp_ = 0;
550 thread_local_.step_out_fp_ = 0; 550 thread_local_.step_out_fp_ = 0;
551 thread_local_.after_break_target_ = 0; 551 thread_local_.after_break_target_ = 0;
552 thread_local_.debugger_entry_ = NULL; 552 thread_local_.debugger_entry_ = NULL;
553 thread_local_.pending_interrupts_ = 0; 553 thread_local_.pending_interrupts_ = 0;
554 thread_local_.restarter_frame_function_pointer_ = NULL;
554 } 555 }
555 556
556 557
557 JSCallerSavedBuffer Debug::registers_; 558 JSCallerSavedBuffer Debug::registers_;
558 Debug::ThreadLocal Debug::thread_local_; 559 Debug::ThreadLocal Debug::thread_local_;
559 560
560 561
561 char* Debug::ArchiveDebug(char* storage) { 562 char* Debug::ArchiveDebug(char* storage) {
562 char* to = storage; 563 char* to = storage;
563 memcpy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal)); 564 memcpy(to, reinterpret_cast<char*>(&thread_local_), sizeof(ThreadLocal));
(...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 { 3046 {
3046 Locker locker; 3047 Locker locker;
3047 Debugger::CallMessageDispatchHandler(); 3048 Debugger::CallMessageDispatchHandler();
3048 } 3049 }
3049 } 3050 }
3050 } 3051 }
3051 3052
3052 #endif // ENABLE_DEBUGGER_SUPPORT 3053 #endif // ENABLE_DEBUGGER_SUPPORT
3053 3054
3054 } } // namespace v8::internal 3055 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698