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

Side by Side Diff: src/mips64/deoptimizer-mips64.cc

Issue 1605093002: MIPS64: Use the Lsa() and Dlsa() macro/r6 instructions in existing code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/mips64/codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/codegen.h" 5 #include "src/codegen.h"
6 #include "src/deoptimizer.h" 6 #include "src/deoptimizer.h"
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/register-configuration.h" 8 #include "src/register-configuration.h"
9 #include "src/safepoint-table.h" 9 #include "src/safepoint-table.h"
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 } 266 }
267 __ pop(a0); // Restore deoptimizer object (class Deoptimizer). 267 __ pop(a0); // Restore deoptimizer object (class Deoptimizer).
268 268
269 // Replace the current (input) frame with the output frames. 269 // Replace the current (input) frame with the output frames.
270 Label outer_push_loop, inner_push_loop, 270 Label outer_push_loop, inner_push_loop,
271 outer_loop_header, inner_loop_header; 271 outer_loop_header, inner_loop_header;
272 // Outer loop state: a4 = current "FrameDescription** output_", 272 // Outer loop state: a4 = current "FrameDescription** output_",
273 // a1 = one past the last FrameDescription**. 273 // a1 = one past the last FrameDescription**.
274 __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); 274 __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset()));
275 __ ld(a4, MemOperand(a0, Deoptimizer::output_offset())); // a4 is output_. 275 __ ld(a4, MemOperand(a0, Deoptimizer::output_offset())); // a4 is output_.
276 __ dsll(a1, a1, kPointerSizeLog2); // Count to offset. 276 __ Dlsa(a1, a4, a1, kPointerSizeLog2);
277 __ daddu(a1, a4, a1); // a1 = one past the last FrameDescription**.
278 __ BranchShort(&outer_loop_header); 277 __ BranchShort(&outer_loop_header);
279 __ bind(&outer_push_loop); 278 __ bind(&outer_push_loop);
280 // Inner loop state: a2 = current FrameDescription*, a3 = loop index. 279 // Inner loop state: a2 = current FrameDescription*, a3 = loop index.
281 __ ld(a2, MemOperand(a4, 0)); // output_[ix] 280 __ ld(a2, MemOperand(a4, 0)); // output_[ix]
282 __ ld(a3, MemOperand(a2, FrameDescription::frame_size_offset())); 281 __ ld(a3, MemOperand(a2, FrameDescription::frame_size_offset()));
283 __ BranchShort(&inner_loop_header); 282 __ BranchShort(&inner_loop_header);
284 __ bind(&inner_push_loop); 283 __ bind(&inner_push_loop);
285 __ Dsubu(a3, a3, Operand(sizeof(uint64_t))); 284 __ Dsubu(a3, a3, Operand(sizeof(uint64_t)));
286 __ Daddu(a6, a2, Operand(a3)); 285 __ Daddu(a6, a2, Operand(a3));
287 __ ld(a7, MemOperand(a6, FrameDescription::frame_content_offset())); 286 __ ld(a7, MemOperand(a6, FrameDescription::frame_content_offset()));
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // No embedded constant pool support. 409 // No embedded constant pool support.
411 UNREACHABLE(); 410 UNREACHABLE();
412 } 411 }
413 412
414 413
415 #undef __ 414 #undef __
416 415
417 416
418 } // namespace internal 417 } // namespace internal
419 } // namespace v8 418 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/codegen-mips64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698