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

Side by Side Diff: src/x64/cfg-x64.cc

Issue 162007: Fix the debugger in multipass mode by introducing phantome... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« src/arm/cfg-arm.cc ('K') | « src/ia32/cfg-ia32.cc ('k') | 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 __ ret((count + 1) * kPointerSize); 116 __ ret((count + 1) * kPointerSize);
117 // Add padding that will be overwritten by a debugger breakpoint. 117 // Add padding that will be overwritten by a debugger breakpoint.
118 // "movq rsp, rbp; pop rbp" has length 5. "ret k" has length 2. 118 // "movq rsp, rbp; pop rbp" has length 5. "ret k" has length 2.
119 const int kPadding = Debug::kX64JSReturnSequenceLength - 5 - 2; 119 const int kPadding = Debug::kX64JSReturnSequenceLength - 5 - 2;
120 for (int i = 0; i < kPadding; ++i) { 120 for (int i = 0; i < kPadding; ++i) {
121 __ int3(); 121 __ int3();
122 } 122 }
123 } 123 }
124 124
125 125
126 void PositionInstr::Compile(MacroAssembler* masm) {
127 if (FLAG_debug_info && pos_ != RelocInfo::kNoPosition) {
128 __ RecordStatementPosition(pos_);
129 __ RecordPosition(pos_);
Lasse Reichstein 2009/08/06 10:02:28 These functions are all identical, and uses only g
130 }
131 }
132
133
126 void BinaryOpInstr::Compile(MacroAssembler* masm) { 134 void BinaryOpInstr::Compile(MacroAssembler* masm) {
127 // The right-hand value should not be on the stack---if it is a 135 // The right-hand value should not be on the stack---if it is a
128 // compiler-generated temporary it is in the accumulator. 136 // compiler-generated temporary it is in the accumulator.
129 ASSERT(!val1_->is_on_stack()); 137 ASSERT(!val1_->is_on_stack());
130 138
131 Comment cmnt(masm, "[ BinaryOpInstr"); 139 Comment cmnt(masm, "[ BinaryOpInstr");
132 // We can overwrite one of the operands if it is a temporary. 140 // We can overwrite one of the operands if it is a temporary.
133 OverwriteMode mode = NO_OVERWRITE; 141 OverwriteMode mode = NO_OVERWRITE;
134 if (val0_->is_temporary()) { 142 if (val0_->is_temporary()) {
135 mode = OVERWRITE_LEFT; 143 mode = OVERWRITE_LEFT;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 case NOWHERE: 245 case NOWHERE:
238 UNREACHABLE(); 246 UNREACHABLE();
239 break; 247 break;
240 } 248 }
241 } 249 }
242 250
243 251
244 #undef __ 252 #undef __
245 253
246 } } // namespace v8::internal 254 } } // namespace v8::internal
OLDNEW
« src/arm/cfg-arm.cc ('K') | « src/ia32/cfg-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698