| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // a0: deoptimizer object; a1: scratch. | 230 // a0: deoptimizer object; a1: scratch. |
| 231 __ PrepareCallCFunction(1, a1); | 231 __ PrepareCallCFunction(1, a1); |
| 232 // Call Deoptimizer::ComputeOutputFrames(). | 232 // Call Deoptimizer::ComputeOutputFrames(). |
| 233 { | 233 { |
| 234 AllowExternalCallThatCantCauseGC scope(masm()); | 234 AllowExternalCallThatCantCauseGC scope(masm()); |
| 235 __ CallCFunction( | 235 __ CallCFunction( |
| 236 ExternalReference::compute_output_frames_function(isolate()), 1); | 236 ExternalReference::compute_output_frames_function(isolate()), 1); |
| 237 } | 237 } |
| 238 __ pop(a0); // Restore deoptimizer object (class Deoptimizer). | 238 __ pop(a0); // Restore deoptimizer object (class Deoptimizer). |
| 239 | 239 |
| 240 __ ld(sp, MemOperand(a0, Deoptimizer::caller_frame_top_offset())); |
| 241 |
| 240 // Replace the current (input) frame with the output frames. | 242 // Replace the current (input) frame with the output frames. |
| 241 Label outer_push_loop, inner_push_loop, | 243 Label outer_push_loop, inner_push_loop, |
| 242 outer_loop_header, inner_loop_header; | 244 outer_loop_header, inner_loop_header; |
| 243 // Outer loop state: a4 = current "FrameDescription** output_", | 245 // Outer loop state: a4 = current "FrameDescription** output_", |
| 244 // a1 = one past the last FrameDescription**. | 246 // a1 = one past the last FrameDescription**. |
| 245 __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); | 247 __ lw(a1, MemOperand(a0, Deoptimizer::output_count_offset())); |
| 246 __ ld(a4, MemOperand(a0, Deoptimizer::output_offset())); // a4 is output_. | 248 __ ld(a4, MemOperand(a0, Deoptimizer::output_offset())); // a4 is output_. |
| 247 __ Dlsa(a1, a4, a1, kPointerSizeLog2); | 249 __ Dlsa(a1, a4, a1, kPointerSizeLog2); |
| 248 __ BranchShort(&outer_loop_header); | 250 __ BranchShort(&outer_loop_header); |
| 249 __ bind(&outer_push_loop); | 251 __ bind(&outer_push_loop); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // No embedded constant pool support. | 382 // No embedded constant pool support. |
| 381 UNREACHABLE(); | 383 UNREACHABLE(); |
| 382 } | 384 } |
| 383 | 385 |
| 384 | 386 |
| 385 #undef __ | 387 #undef __ |
| 386 | 388 |
| 387 | 389 |
| 388 } // namespace internal | 390 } // namespace internal |
| 389 } // namespace v8 | 391 } // namespace v8 |
| OLD | NEW |