OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 // several frames above. | 258 // several frames above. |
259 // There is no calling conventions here, because it never actually gets called, | 259 // There is no calling conventions here, because it never actually gets called, |
260 // it only gets returned to. | 260 // it only gets returned to. |
261 // Frame structure (conforms InternalFrame structure): | 261 // Frame structure (conforms InternalFrame structure): |
262 // -- JSFunction | 262 // -- JSFunction |
263 // -- code | 263 // -- code |
264 // -- SMI maker | 264 // -- SMI maker |
265 // -- context | 265 // -- context |
266 // -- frame base | 266 // -- frame base |
267 void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { | 267 void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
268 // Temporary disabled for failing test investigation. | 268 ExternalReference restarter_frame_function_slot = |
269 //ExternalReference restarter_frame_function_slot = | 269 ExternalReference(Debug_Address::RestarterFrameFunctionPointer()); |
270 // ExternalReference(Debug_Address::RestarterFrameFunctionPointer()); | 270 __ mov(Operand::StaticVariable(restarter_frame_function_slot), Immediate(0)); |
271 //__ mov(Operand::StaticVariable(restarter_frame_function_slot), Immediate(0))
; | |
272 | 271 |
273 // We do not know our frame height, but set esp based on ebp. | 272 // We do not know our frame height, but set esp based on ebp. |
274 __ lea(esp, Operand(ebp, -4 * kPointerSize)); | 273 __ lea(esp, Operand(ebp, -4 * kPointerSize)); |
275 | 274 |
276 __ pop(edi); // function | 275 __ pop(edi); // function |
277 | 276 |
278 // Skip code self-reference and marker. | 277 // Skip code self-reference and marker. |
279 __ add(Operand(esp), Immediate(2 * kPointerSize)); | 278 __ add(Operand(esp), Immediate(2 * kPointerSize)); |
280 | 279 |
281 __ pop(esi); // Context. | 280 __ pop(esi); // Context. |
(...skipping 28 matching lines...) Expand all Loading... |
310 } | 309 } |
311 | 310 |
312 const int Debug::kFrameDropperFrameSize = 5; | 311 const int Debug::kFrameDropperFrameSize = 5; |
313 | 312 |
314 | 313 |
315 #endif // ENABLE_DEBUGGER_SUPPORT | 314 #endif // ENABLE_DEBUGGER_SUPPORT |
316 | 315 |
317 } } // namespace v8::internal | 316 } } // namespace v8::internal |
318 | 317 |
319 #endif // V8_TARGET_ARCH_IA32 | 318 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |