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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 int arguments, 857 int arguments,
858 Safepoint::DeoptMode deopt_mode) { 858 Safepoint::DeoptMode deopt_mode) {
859 RecordSafepoint( 859 RecordSafepoint(
860 pointers, Safepoint::kWithRegisters, arguments, deopt_mode); 860 pointers, Safepoint::kWithRegisters, arguments, deopt_mode);
861 } 861 }
862 862
863 863
864 void LCodeGen::RecordAndWritePosition(int position) { 864 void LCodeGen::RecordAndWritePosition(int position) {
865 if (position == RelocInfo::kNoPosition) return; 865 if (position == RelocInfo::kNoPosition) return;
866 masm()->positions_recorder()->RecordPosition(position); 866 masm()->positions_recorder()->RecordPosition(position);
867 masm()->positions_recorder()->WriteRecordedPositions();
868 } 867 }
869 868
870 869
871 static const char* LabelType(LLabel* label) { 870 static const char* LabelType(LLabel* label) {
872 if (label->is_loop_header()) return " (loop header)"; 871 if (label->is_loop_header()) return " (loop header)";
873 if (label->is_osr_entry()) return " (OSR entry)"; 872 if (label->is_osr_entry()) return " (OSR entry)";
874 return ""; 873 return "";
875 } 874 }
876 875
877 876
(...skipping 4872 matching lines...) Expand 10 before | Expand all | Expand 10 after
5750 __ ld(result, FieldMemOperand(scratch, 5749 __ ld(result, FieldMemOperand(scratch,
5751 FixedArray::kHeaderSize - kPointerSize)); 5750 FixedArray::kHeaderSize - kPointerSize));
5752 __ bind(deferred->exit()); 5751 __ bind(deferred->exit());
5753 __ bind(&done); 5752 __ bind(&done);
5754 } 5753 }
5755 5754
5756 #undef __ 5755 #undef __
5757 5756
5758 } // namespace internal 5757 } // namespace internal
5759 } // namespace v8 5758 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698