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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 int arguments, 868 int arguments,
869 Safepoint::DeoptMode deopt_mode) { 869 Safepoint::DeoptMode deopt_mode) {
870 RecordSafepoint( 870 RecordSafepoint(
871 pointers, Safepoint::kWithRegisters, arguments, deopt_mode); 871 pointers, Safepoint::kWithRegisters, arguments, deopt_mode);
872 } 872 }
873 873
874 874
875 void LCodeGen::RecordAndWritePosition(int position) { 875 void LCodeGen::RecordAndWritePosition(int position) {
876 if (position == RelocInfo::kNoPosition) return; 876 if (position == RelocInfo::kNoPosition) return;
877 masm()->positions_recorder()->RecordPosition(position); 877 masm()->positions_recorder()->RecordPosition(position);
878 masm()->positions_recorder()->WriteRecordedPositions();
879 } 878 }
880 879
881 880
882 static const char* LabelType(LLabel* label) { 881 static const char* LabelType(LLabel* label) {
883 if (label->is_loop_header()) return " (loop header)"; 882 if (label->is_loop_header()) return " (loop header)";
884 if (label->is_osr_entry()) return " (OSR entry)"; 883 if (label->is_osr_entry()) return " (OSR entry)";
885 return ""; 884 return "";
886 } 885 }
887 886
888 887
(...skipping 4657 matching lines...) Expand 10 before | Expand all | Expand 10 after
5546 __ lw(result, FieldMemOperand(scratch, 5545 __ lw(result, FieldMemOperand(scratch,
5547 FixedArray::kHeaderSize - kPointerSize)); 5546 FixedArray::kHeaderSize - kPointerSize));
5548 __ bind(deferred->exit()); 5547 __ bind(deferred->exit());
5549 __ bind(&done); 5548 __ bind(&done);
5550 } 5549 }
5551 5550
5552 #undef __ 5551 #undef __
5553 5552
5554 } // namespace internal 5553 } // namespace internal
5555 } // namespace v8 5554 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698