| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 365 |
| 366 Comment(";;; call deopt"); | 366 Comment(";;; call deopt"); |
| 367 __ bind(&call_deopt_entry); | 367 __ bind(&call_deopt_entry); |
| 368 | 368 |
| 369 if (info()->saves_caller_doubles()) { | 369 if (info()->saves_caller_doubles()) { |
| 370 DCHECK(info()->IsStub()); | 370 DCHECK(info()->IsStub()); |
| 371 RestoreCallerDoubles(); | 371 RestoreCallerDoubles(); |
| 372 } | 372 } |
| 373 | 373 |
| 374 // Add the base address to the offset previously loaded in entry_offset. | 374 // Add the base address to the offset previously loaded in entry_offset. |
| 375 __ Addu(entry_offset, entry_offset, | 375 __ Jump(entry_offset, Operand(ExternalReference::ForDeoptEntry(base))); |
| 376 Operand(ExternalReference::ForDeoptEntry(base))); | |
| 377 __ Jump(entry_offset); | |
| 378 } | 376 } |
| 379 __ RecordComment("]"); | 377 __ RecordComment("]"); |
| 380 | 378 |
| 381 // The deoptimization jump table is the last part of the instruction | 379 // The deoptimization jump table is the last part of the instruction |
| 382 // sequence. Mark the generated code as done unless we bailed out. | 380 // sequence. Mark the generated code as done unless we bailed out. |
| 383 if (!is_aborted()) status_ = DONE; | 381 if (!is_aborted()) status_ = DONE; |
| 384 return !is_aborted(); | 382 return !is_aborted(); |
| 385 } | 383 } |
| 386 | 384 |
| 387 | 385 |
| (...skipping 5026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5414 __ lw(result, FieldMemOperand(scratch, | 5412 __ lw(result, FieldMemOperand(scratch, |
| 5415 FixedArray::kHeaderSize - kPointerSize)); | 5413 FixedArray::kHeaderSize - kPointerSize)); |
| 5416 __ bind(deferred->exit()); | 5414 __ bind(deferred->exit()); |
| 5417 __ bind(&done); | 5415 __ bind(&done); |
| 5418 } | 5416 } |
| 5419 | 5417 |
| 5420 #undef __ | 5418 #undef __ |
| 5421 | 5419 |
| 5422 } // namespace internal | 5420 } // namespace internal |
| 5423 } // namespace v8 | 5421 } // namespace v8 |
| OLD | NEW |