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

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: 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 4652 matching lines...) Expand 10 before | Expand all | Expand 10 after
5541 __ lw(result, FieldMemOperand(scratch, 5540 __ lw(result, FieldMemOperand(scratch,
5542 FixedArray::kHeaderSize - kPointerSize)); 5541 FixedArray::kHeaderSize - kPointerSize));
5543 __ bind(deferred->exit()); 5542 __ bind(deferred->exit());
5544 __ bind(&done); 5543 __ bind(&done);
5545 } 5544 }
5546 5545
5547 #undef __ 5546 #undef __
5548 5547
5549 } // namespace internal 5548 } // namespace internal
5550 } // namespace v8 5549 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698