Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 300 __ movq(rsi, MemOperand(rsp, kPointerSize)); | 300 __ movq(rsi, MemOperand(rsp, kPointerSize)); |
| 301 __ call(kScratchRegister); | 301 __ call(kScratchRegister); |
| 302 } | 302 } |
| 303 } else { | 303 } else { |
| 304 if (needs_frame_not_call.is_bound()) { | 304 if (needs_frame_not_call.is_bound()) { |
| 305 __ jmp(&needs_frame_not_call); | 305 __ jmp(&needs_frame_not_call); |
| 306 } else { | 306 } else { |
| 307 __ bind(&needs_frame_not_call); | 307 __ bind(&needs_frame_not_call); |
| 308 __ push(rbp); | 308 __ push(rbp); |
| 309 __ movq(rbp, rsp); | 309 __ movq(rbp, rsp); |
| 310 __ push(r8); | 310 __ push(rsi); |
|
Jakob Kummerow
2012/12/11 14:05:54
oops :-)
| |
| 311 // This variant of deopt can only be used with stubs. Since we don't | 311 // This variant of deopt can only be used with stubs. Since we don't |
| 312 // have a function pointer to install in the stack frame that we're | 312 // have a function pointer to install in the stack frame that we're |
| 313 // building, install a special marker there instead. | 313 // building, install a special marker there instead. |
| 314 ASSERT(info()->IsStub()); | 314 ASSERT(info()->IsStub()); |
| 315 __ Move(rsi, Smi::FromInt(StackFrame::STUB)); | 315 __ Move(rsi, Smi::FromInt(StackFrame::STUB)); |
| 316 __ push(rsi); | 316 __ push(rsi); |
| 317 __ movq(rsi, MemOperand(rsp, kPointerSize)); | 317 __ movq(rsi, MemOperand(rsp, kPointerSize)); |
| 318 __ jmp(kScratchRegister); | 318 __ jmp(kScratchRegister); |
| 319 } | 319 } |
| 320 } | 320 } |
| (...skipping 5207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5528 FixedArray::kHeaderSize - kPointerSize)); | 5528 FixedArray::kHeaderSize - kPointerSize)); |
| 5529 __ bind(&done); | 5529 __ bind(&done); |
| 5530 } | 5530 } |
| 5531 | 5531 |
| 5532 | 5532 |
| 5533 #undef __ | 5533 #undef __ |
| 5534 | 5534 |
| 5535 } } // namespace v8::internal | 5535 } } // namespace v8::internal |
| 5536 | 5536 |
| 5537 #endif // V8_TARGET_ARCH_X64 | 5537 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |