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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('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 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers, 813 void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers,
814 int arguments, 814 int arguments,
815 Safepoint::DeoptMode deopt_mode) { 815 Safepoint::DeoptMode deopt_mode) {
816 RecordSafepoint(pointers, Safepoint::kWithRegisters, arguments, deopt_mode); 816 RecordSafepoint(pointers, Safepoint::kWithRegisters, arguments, deopt_mode);
817 } 817 }
818 818
819 void LCodeGen::RecordAndWritePosition(int position) { 819 void LCodeGen::RecordAndWritePosition(int position) {
820 if (position == RelocInfo::kNoPosition) return; 820 if (position == RelocInfo::kNoPosition) return;
821 masm()->positions_recorder()->RecordPosition(position); 821 masm()->positions_recorder()->RecordPosition(position);
822 masm()->positions_recorder()->WriteRecordedPositions();
823 } 822 }
824 823
825 static const char* LabelType(LLabel* label) { 824 static const char* LabelType(LLabel* label) {
826 if (label->is_loop_header()) return " (loop header)"; 825 if (label->is_loop_header()) return " (loop header)";
827 if (label->is_osr_entry()) return " (OSR entry)"; 826 if (label->is_osr_entry()) return " (OSR entry)";
828 return ""; 827 return "";
829 } 828 }
830 829
831 void LCodeGen::DoLabel(LLabel* label) { 830 void LCodeGen::DoLabel(LLabel* label) {
832 Comment(";;; <@%d,#%d> -------------------- B%d%s --------------------", 831 Comment(";;; <@%d,#%d> -------------------- B%d%s --------------------",
(...skipping 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5702 __ LoadP(result, 5701 __ LoadP(result,
5703 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5702 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5704 __ bind(deferred->exit()); 5703 __ bind(deferred->exit());
5705 __ bind(&done); 5704 __ bind(&done);
5706 } 5705 }
5707 5706
5708 #undef __ 5707 #undef __
5709 5708
5710 } // namespace internal 5709 } // namespace internal
5711 } // namespace v8 5710 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698