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

Side by Side Diff: src/arm/debug-arm.cc

Issue 356713003: Use IC register definitions in platform files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits. Created 6 years, 6 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/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.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 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // ----------- S t a t e ------------- 169 // ----------- S t a t e -------------
170 // -- r1 : function 170 // -- r1 : function
171 // -- r3 : slot in feedback array (smi) 171 // -- r3 : slot in feedback array (smi)
172 // ----------------------------------- 172 // -----------------------------------
173 Generate_DebugBreakCallHelper(masm, r1.bit() | r3.bit(), 0); 173 Generate_DebugBreakCallHelper(masm, r1.bit() | r3.bit(), 0);
174 } 174 }
175 175
176 176
177 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) { 177 void DebugCodegen::GenerateLoadICDebugBreak(MacroAssembler* masm) {
178 // Calling convention for IC load (from ic-arm.cc). 178 // Calling convention for IC load (from ic-arm.cc).
179 // ----------- S t a t e ------------- 179 Register receiver = LoadIC::ReceiverRegister();
180 // -- r2 : name 180 Register name = LoadIC::NameRegister();
181 // -- lr : return address 181 Generate_DebugBreakCallHelper(masm, receiver.bit() | name.bit(), 0);
182 // -- r0 : receiver
183 // -- [sp] : receiver
184 // -----------------------------------
185 // Registers r0 and r2 contain objects that need to be pushed on the
186 // expression stack of the fake JS frame.
187 Generate_DebugBreakCallHelper(masm, r0.bit() | r2.bit(), 0);
188 } 182 }
189 183
190 184
191 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) { 185 void DebugCodegen::GenerateStoreICDebugBreak(MacroAssembler* masm) {
192 // Calling convention for IC store (from ic-arm.cc). 186 // Calling convention for IC store (from ic-arm.cc).
193 // ----------- S t a t e ------------- 187 // ----------- S t a t e -------------
194 // -- r0 : value 188 // -- r0 : value
195 // -- r1 : receiver 189 // -- r1 : receiver
196 // -- r2 : name 190 // -- r2 : name
197 // -- lr : return address 191 // -- lr : return address
198 // ----------------------------------- 192 // -----------------------------------
199 // Registers r0, r1, and r2 contain objects that need to be pushed on the 193 // Registers r0, r1, and r2 contain objects that need to be pushed on the
200 // expression stack of the fake JS frame. 194 // expression stack of the fake JS frame.
201 Generate_DebugBreakCallHelper(masm, r0.bit() | r1.bit() | r2.bit(), 0); 195 Generate_DebugBreakCallHelper(masm, r0.bit() | r1.bit() | r2.bit(), 0);
202 } 196 }
203 197
204 198
205 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { 199 void DebugCodegen::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) {
206 // ---------- S t a t e -------------- 200 // Calling convention for keyed IC load (from ic-arm.cc).
207 // -- lr : return address 201 Register receiver = KeyedLoadIC::ReceiverRegister();
208 // -- r0 : key 202 Register name = KeyedLoadIC::NameRegister();
209 // -- r1 : receiver 203 Generate_DebugBreakCallHelper(masm, receiver.bit() | name.bit(), 0);
210 Generate_DebugBreakCallHelper(masm, r0.bit() | r1.bit(), 0);
211 } 204 }
212 205
213 206
214 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) { 207 void DebugCodegen::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) {
215 // ---------- S t a t e -------------- 208 // ---------- S t a t e --------------
216 // -- r0 : value 209 // -- r0 : value
217 // -- r1 : key 210 // -- r1 : key
218 // -- r2 : receiver 211 // -- r2 : receiver
219 // -- lr : return address 212 // -- lr : return address
220 Generate_DebugBreakCallHelper(masm, r0.bit() | r1.bit() | r2.bit(), 0); 213 Generate_DebugBreakCallHelper(masm, r0.bit() | r1.bit() | r2.bit(), 0);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 316 }
324 317
325 318
326 const bool LiveEdit::kFrameDropperSupported = true; 319 const bool LiveEdit::kFrameDropperSupported = true;
327 320
328 #undef __ 321 #undef __
329 322
330 } } // namespace v8::internal 323 } } // namespace v8::internal
331 324
332 #endif // V8_TARGET_ARCH_ARM 325 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698