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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.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/compiler/code-generator.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.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/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 int arguments, 902 int arguments,
903 Safepoint::DeoptMode deopt_mode) { 903 Safepoint::DeoptMode deopt_mode) {
904 RecordSafepoint( 904 RecordSafepoint(
905 pointers, Safepoint::kWithRegisters, arguments, deopt_mode); 905 pointers, Safepoint::kWithRegisters, arguments, deopt_mode);
906 } 906 }
907 907
908 908
909 void LCodeGen::RecordAndWritePosition(int position) { 909 void LCodeGen::RecordAndWritePosition(int position) {
910 if (position == RelocInfo::kNoPosition) return; 910 if (position == RelocInfo::kNoPosition) return;
911 masm()->positions_recorder()->RecordPosition(position); 911 masm()->positions_recorder()->RecordPosition(position);
912 masm()->positions_recorder()->WriteRecordedPositions();
913 } 912 }
914 913
915 914
916 static const char* LabelType(LLabel* label) { 915 static const char* LabelType(LLabel* label) {
917 if (label->is_loop_header()) return " (loop header)"; 916 if (label->is_loop_header()) return " (loop header)";
918 if (label->is_osr_entry()) return " (OSR entry)"; 917 if (label->is_osr_entry()) return " (OSR entry)";
919 return ""; 918 return "";
920 } 919 }
921 920
922 921
(...skipping 4625 matching lines...) Expand 10 before | Expand all | Expand 10 after
5548 __ ldr(result, FieldMemOperand(scratch, 5547 __ ldr(result, FieldMemOperand(scratch,
5549 FixedArray::kHeaderSize - kPointerSize)); 5548 FixedArray::kHeaderSize - kPointerSize));
5550 __ bind(deferred->exit()); 5549 __ bind(deferred->exit());
5551 __ bind(&done); 5550 __ bind(&done);
5552 } 5551 }
5553 5552
5554 #undef __ 5553 #undef __
5555 5554
5556 } // namespace internal 5555 } // namespace internal
5557 } // namespace v8 5556 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698