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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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 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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers, 803 void LCodeGen::RecordSafepointWithRegisters(LPointerMap* pointers,
804 int arguments, 804 int arguments,
805 Safepoint::DeoptMode mode) { 805 Safepoint::DeoptMode mode) {
806 RecordSafepoint(pointers, Safepoint::kWithRegisters, arguments, mode); 806 RecordSafepoint(pointers, Safepoint::kWithRegisters, arguments, mode);
807 } 807 }
808 808
809 809
810 void LCodeGen::RecordAndWritePosition(int position) { 810 void LCodeGen::RecordAndWritePosition(int position) {
811 if (position == RelocInfo::kNoPosition) return; 811 if (position == RelocInfo::kNoPosition) return;
812 masm()->positions_recorder()->RecordPosition(position); 812 masm()->positions_recorder()->RecordPosition(position);
813 masm()->positions_recorder()->WriteRecordedPositions();
814 } 813 }
815 814
816 815
817 static const char* LabelType(LLabel* label) { 816 static const char* LabelType(LLabel* label) {
818 if (label->is_loop_header()) return " (loop header)"; 817 if (label->is_loop_header()) return " (loop header)";
819 if (label->is_osr_entry()) return " (OSR entry)"; 818 if (label->is_osr_entry()) return " (OSR entry)";
820 return ""; 819 return "";
821 } 820 }
822 821
823 822
(...skipping 4488 matching lines...) Expand 10 before | Expand all | Expand 10 after
5312 __ bind(deferred->exit()); 5311 __ bind(deferred->exit());
5313 __ bind(&done); 5312 __ bind(&done);
5314 } 5313 }
5315 5314
5316 #undef __ 5315 #undef __
5317 5316
5318 } // namespace internal 5317 } // namespace internal
5319 } // namespace v8 5318 } // namespace v8
5320 5319
5321 #endif // V8_TARGET_ARCH_IA32 5320 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698