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

Side by Side Diff: src/debug.cc

Issue 1229673005: Debugger: record reloc info for debug break slot immediate before the slot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix typo Created 5 years, 5 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 | « src/debug.h ('k') | src/full-codegen.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 "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
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
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698