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

Side by Side Diff: src/crankshaft/ppc/lithium-codegen-ppc.cc

Issue 2072963003: Simplify AssemblerPositionsRecorder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 4 years, 6 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
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/crankshaft/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers, 829 void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers,
830 int arguments, 830 int arguments,
831 Safepoint::DeoptMode deopt_mode) { 831 Safepoint::DeoptMode deopt_mode) {
832 RecordSafepoint(pointers, Safepoint::kWithRegisters, arguments, deopt_mode); 832 RecordSafepoint(pointers, Safepoint::kWithRegisters, arguments, deopt_mode);
833 } 833 }
834 834
835 835
836 void LCodeGen::RecordAndWritePosition(int position) { 836 void LCodeGen::RecordAndWritePosition(int position) {
837 if (position == RelocInfo::kNoPosition) return; 837 if (position == RelocInfo::kNoPosition) return;
838 masm()->positions_recorder()->RecordPosition(position); 838 masm()->positions_recorder()->RecordPosition(position);
839 masm()->positions_recorder()->WriteRecordedPositions();
840 } 839 }
841 840
842 841
843 static const char* LabelType(LLabel* label) { 842 static const char* LabelType(LLabel* label) {
844 if (label->is_loop_header()) return " (loop header)"; 843 if (label->is_loop_header()) return " (loop header)";
845 if (label->is_osr_entry()) return " (OSR entry)"; 844 if (label->is_osr_entry()) return " (OSR entry)";
846 return ""; 845 return "";
847 } 846 }
848 847
849 848
(...skipping 4966 matching lines...) Expand 10 before | Expand all | Expand 10 after
5816 __ LoadP(result, 5815 __ LoadP(result,
5817 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5816 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5818 __ bind(deferred->exit()); 5817 __ bind(deferred->exit());
5819 __ bind(&done); 5818 __ bind(&done);
5820 } 5819 }
5821 5820
5822 #undef __ 5821 #undef __
5823 5822
5824 } // namespace internal 5823 } // namespace internal
5825 } // namespace v8 5824 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698