OLD | NEW |
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 __ pop(a0); // Restore deoptimizer object (class Deoptimizer). | 262 __ pop(a0); // Restore deoptimizer object (class Deoptimizer). |
263 | 263 |
264 // Replace the current (input) frame with the output frames. | 264 // Replace the current (input) frame with the output frames. |
265 Label outer_push_loop, inner_push_loop, | 265 Label outer_push_loop, inner_push_loop, |
266 outer_loop_header, inner_loop_header; | 266 outer_loop_header, inner_loop_header; |
267 // Outer loop state: t0 = current "FrameDescription** output_", | 267 // Outer loop state: t0 = current "FrameDescription** output_", |
268 // a1 = one past the last FrameDescription**. | 268 // a1 = one past the last FrameDescription**. |
269 __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); | 269 __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); |
270 __ lw(t0, MemOperand(a0, Deoptimizer::output_offset())); // t0 is output_. | 270 __ lw(t0, MemOperand(a0, Deoptimizer::output_offset())); // t0 is output_. |
271 __ sll(a1, a1, kPointerSizeLog2); // Count to offset. | 271 __ Lsa(a1, t0, a1, kPointerSizeLog2); |
272 __ addu(a1, t0, a1); // a1 = one past the last FrameDescription**. | |
273 __ BranchShort(&outer_loop_header); | 272 __ BranchShort(&outer_loop_header); |
274 __ bind(&outer_push_loop); | 273 __ bind(&outer_push_loop); |
275 // Inner loop state: a2 = current FrameDescription*, a3 = loop index. | 274 // Inner loop state: a2 = current FrameDescription*, a3 = loop index. |
276 __ lw(a2, MemOperand(t0, 0)); // output_[ix] | 275 __ lw(a2, MemOperand(t0, 0)); // output_[ix] |
277 __ lw(a3, MemOperand(a2, FrameDescription::frame_size_offset())); | 276 __ lw(a3, MemOperand(a2, FrameDescription::frame_size_offset())); |
278 __ BranchShort(&inner_loop_header); | 277 __ BranchShort(&inner_loop_header); |
279 __ bind(&inner_push_loop); | 278 __ bind(&inner_push_loop); |
280 __ Subu(a3, a3, Operand(sizeof(uint32_t))); | 279 __ Subu(a3, a3, Operand(sizeof(uint32_t))); |
281 __ Addu(t2, a2, Operand(a3)); | 280 __ Addu(t2, a2, Operand(a3)); |
282 __ lw(t3, MemOperand(t2, FrameDescription::frame_content_offset())); | 281 __ lw(t3, MemOperand(t2, FrameDescription::frame_content_offset())); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 // No embedded constant pool support. | 404 // No embedded constant pool support. |
406 UNREACHABLE(); | 405 UNREACHABLE(); |
407 } | 406 } |
408 | 407 |
409 | 408 |
410 #undef __ | 409 #undef __ |
411 | 410 |
412 | 411 |
413 } // namespace internal | 412 } // namespace internal |
414 } // namespace v8 | 413 } // namespace v8 |
OLD | NEW |