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

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

Issue 1768263004: [turbofan] [deoptimizer] Support inlining of ES6 tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments, StandardFrameConstants -> CommonFrameConstants Created 4 years, 9 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 | « no previous file | src/arm64/deoptimizer-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // r0: deoptimizer object; r1: scratch. 227 // r0: deoptimizer object; r1: scratch.
228 __ PrepareCallCFunction(1, r1); 228 __ PrepareCallCFunction(1, r1);
229 // Call Deoptimizer::ComputeOutputFrames(). 229 // Call Deoptimizer::ComputeOutputFrames().
230 { 230 {
231 AllowExternalCallThatCantCauseGC scope(masm()); 231 AllowExternalCallThatCantCauseGC scope(masm());
232 __ CallCFunction( 232 __ CallCFunction(
233 ExternalReference::compute_output_frames_function(isolate()), 1); 233 ExternalReference::compute_output_frames_function(isolate()), 1);
234 } 234 }
235 __ pop(r0); // Restore deoptimizer object (class Deoptimizer). 235 __ pop(r0); // Restore deoptimizer object (class Deoptimizer).
236 236
237 __ ldr(sp, MemOperand(r0, Deoptimizer::caller_frame_top_offset()));
238
237 // Replace the current (input) frame with the output frames. 239 // Replace the current (input) frame with the output frames.
238 Label outer_push_loop, inner_push_loop, 240 Label outer_push_loop, inner_push_loop,
239 outer_loop_header, inner_loop_header; 241 outer_loop_header, inner_loop_header;
240 // Outer loop state: r4 = current "FrameDescription** output_", 242 // Outer loop state: r4 = current "FrameDescription** output_",
241 // r1 = one past the last FrameDescription**. 243 // r1 = one past the last FrameDescription**.
242 __ ldr(r1, MemOperand(r0, Deoptimizer::output_count_offset())); 244 __ ldr(r1, MemOperand(r0, Deoptimizer::output_count_offset()));
243 __ ldr(r4, MemOperand(r0, Deoptimizer::output_offset())); // r4 is output_. 245 __ ldr(r4, MemOperand(r0, Deoptimizer::output_offset())); // r4 is output_.
244 __ add(r1, r4, Operand(r1, LSL, 2)); 246 __ add(r1, r4, Operand(r1, LSL, 2));
245 __ jmp(&outer_loop_header); 247 __ jmp(&outer_loop_header);
246 __ bind(&outer_push_loop); 248 __ bind(&outer_push_loop);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { 336 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) {
335 DCHECK(FLAG_enable_embedded_constant_pool); 337 DCHECK(FLAG_enable_embedded_constant_pool);
336 SetFrameSlot(offset, value); 338 SetFrameSlot(offset, value);
337 } 339 }
338 340
339 341
340 #undef __ 342 #undef __
341 343
342 } // namespace internal 344 } // namespace internal
343 } // namespace v8 345 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/arm64/deoptimizer-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698