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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 471523002: Remove a brittle assertion from Turbofan lazy deoptimization handling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove redundant method Created 6 years, 4 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/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 // No other combinations are possible. 825 // No other combinations are possible.
826 UNREACHABLE(); 826 UNREACHABLE();
827 } 827 }
828 } 828 }
829 829
830 830
831 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } 831 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); }
832 832
833 #undef __ 833 #undef __
834 834
835 #if DEBUG
836
837 // Checks whether the code between start_pc and end_pc is a no-op.
838 bool CodeGenerator::IsNopForSmiCodeInlining(Handle<Code> code, int start_pc,
839 int end_pc) {
840 if (start_pc + 4 != end_pc) {
841 return false;
842 }
843 Address instr_address = code->instruction_start() + start_pc;
844
845 v8::internal::Instruction* instr =
846 reinterpret_cast<v8::internal::Instruction*>(instr_address);
847 return instr->IsMovz() && instr->Rd() == xzr.code() && instr->SixtyFourBits();
848 }
849
850 #endif // DEBUG
851
852 } // namespace compiler 835 } // namespace compiler
853 } // namespace internal 836 } // namespace internal
854 } // namespace v8 837 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698