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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 14997008: Add a HBreak instruction for debugging (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 7 years, 7 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/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 __ j(cc, chunk_->GetAssemblyLabel(left_block)); 1856 __ j(cc, chunk_->GetAssemblyLabel(left_block));
1857 } else { 1857 } else {
1858 __ j(cc, chunk_->GetAssemblyLabel(left_block)); 1858 __ j(cc, chunk_->GetAssemblyLabel(left_block));
1859 if (cc != always) { 1859 if (cc != always) {
1860 __ jmp(chunk_->GetAssemblyLabel(right_block)); 1860 __ jmp(chunk_->GetAssemblyLabel(right_block));
1861 } 1861 }
1862 } 1862 }
1863 } 1863 }
1864 1864
1865 1865
1866 void LCodeGen::DoDebugBreak(LDebugBreak* instr) {
1867 __ int3();
1868 }
1869
1870
1866 void LCodeGen::DoBranch(LBranch* instr) { 1871 void LCodeGen::DoBranch(LBranch* instr) {
1867 int true_block = chunk_->LookupDestination(instr->true_block_id()); 1872 int true_block = chunk_->LookupDestination(instr->true_block_id());
1868 int false_block = chunk_->LookupDestination(instr->false_block_id()); 1873 int false_block = chunk_->LookupDestination(instr->false_block_id());
1869 1874
1870 Representation r = instr->hydrogen()->value()->representation(); 1875 Representation r = instr->hydrogen()->value()->representation();
1871 if (r.IsInteger32()) { 1876 if (r.IsInteger32()) {
1872 Register reg = ToRegister(instr->value()); 1877 Register reg = ToRegister(instr->value());
1873 __ testl(reg, reg); 1878 __ testl(reg, reg);
1874 EmitBranch(true_block, false_block, not_zero); 1879 EmitBranch(true_block, false_block, not_zero);
1875 } else if (r.IsDouble()) { 1880 } else if (r.IsDouble()) {
(...skipping 3724 matching lines...) Expand 10 before | Expand all | Expand 10 after
5600 FixedArray::kHeaderSize - kPointerSize)); 5605 FixedArray::kHeaderSize - kPointerSize));
5601 __ bind(&done); 5606 __ bind(&done);
5602 } 5607 }
5603 5608
5604 5609
5605 #undef __ 5610 #undef __
5606 5611
5607 } } // namespace v8::internal 5612 } } // namespace v8::internal
5608 5613
5609 #endif // V8_TARGET_ARCH_X64 5614 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698