| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 Generate_DebugBreakCallHelper(masm, rcx.bit(), 0, false); | 228 Generate_DebugBreakCallHelper(masm, rcx.bit(), 0, false); |
| 229 } | 229 } |
| 230 | 230 |
| 231 | 231 |
| 232 void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) { | 232 void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) { |
| 233 // Register state just before return from JS function (from codegen-x64.cc). | 233 // Register state just before return from JS function (from codegen-x64.cc). |
| 234 // rax is the actual number of arguments not encoded as a smi, see comment | 234 // rax is the actual number of arguments not encoded as a smi, see comment |
| 235 // above IC call. | 235 // above IC call. |
| 236 // ----------- S t a t e ------------- | 236 // ----------- S t a t e ------------- |
| 237 // -- rax: number of arguments | 237 // -- rax: number of arguments |
| 238 // -- rbx: cache cell for call target |
| 238 // ----------------------------------- | 239 // ----------------------------------- |
| 239 // The number of arguments in rax is not smi encoded. | 240 // The number of arguments in rax is not smi encoded. |
| 240 Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false); | 241 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdi.bit(), rax.bit(), false); |
| 241 } | 242 } |
| 242 | 243 |
| 243 | 244 |
| 244 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { | 245 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
| 245 // Register state just before return from JS function (from codegen-x64.cc). | 246 // Register state just before return from JS function (from codegen-x64.cc). |
| 246 // ----------- S t a t e ------------- | 247 // ----------- S t a t e ------------- |
| 247 // -- rax: return value | 248 // -- rax: return value |
| 248 // ----------------------------------- | 249 // ----------------------------------- |
| 249 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true); | 250 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true); |
| 250 } | 251 } |
| 251 | 252 |
| 252 | 253 |
| 253 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { | 254 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
| 254 // Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc). | 255 // Register state for CallFunctionStub (from code-stubs-x64.cc). |
| 255 // ----------- S t a t e ------------- | 256 // ----------- S t a t e ------------- |
| 256 // -- rdi : function | 257 // -- rdi : function |
| 257 // ----------------------------------- | 258 // ----------------------------------- |
| 258 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false); | 259 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false); |
| 259 } | 260 } |
| 260 | 261 |
| 261 | 262 |
| 262 void Debug::GenerateSlot(MacroAssembler* masm) { | 263 void Debug::GenerateSlot(MacroAssembler* masm) { |
| 263 // Generate enough nop's to make space for a call instruction. | 264 // Generate enough nop's to make space for a call instruction. |
| 264 Label check_codesize; | 265 Label check_codesize; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 310 |
| 310 const bool Debug::kFrameDropperSupported = true; | 311 const bool Debug::kFrameDropperSupported = true; |
| 311 | 312 |
| 312 #undef __ | 313 #undef __ |
| 313 | 314 |
| 314 #endif // ENABLE_DEBUGGER_SUPPORT | 315 #endif // ENABLE_DEBUGGER_SUPPORT |
| 315 | 316 |
| 316 } } // namespace v8::internal | 317 } } // namespace v8::internal |
| 317 | 318 |
| 318 #endif // V8_TARGET_ARCH_X64 | 319 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |