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

Side by Side Diff: src/compiler/osr.cc

Issue 1261923007: [turbofan] Unify referencing of stack slots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 4 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/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/pipeline.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler.h" 5 #include "src/compiler.h"
6 #include "src/compiler/all-nodes.h" 6 #include "src/compiler/all-nodes.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/common-operator-reducer.h" 8 #include "src/compiler/common-operator-reducer.h"
9 #include "src/compiler/dead-code-elimination.h" 9 #include "src/compiler/dead-code-elimination.h"
10 #include "src/compiler/frame.h" 10 #include "src/compiler/frame.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 NodeVector roots(tmp_zone); 321 NodeVector roots(tmp_zone);
322 jsgraph->GetCachedNodes(&roots); 322 jsgraph->GetCachedNodes(&roots);
323 trimmer.TrimGraph(roots.begin(), roots.end()); 323 trimmer.TrimGraph(roots.begin(), roots.end());
324 } 324 }
325 325
326 326
327 void OsrHelper::SetupFrame(Frame* frame) { 327 void OsrHelper::SetupFrame(Frame* frame) {
328 // The optimized frame will subsume the unoptimized frame. Do so by reserving 328 // The optimized frame will subsume the unoptimized frame. Do so by reserving
329 // the first spill slots. 329 // the first spill slots.
330 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); 330 frame->ReserveSpillSlots(UnoptimizedFrameSlots());
331 // The frame needs to be adjusted by the number of unoptimized frame slots.
332 frame->SetOsrStackSlotCount(static_cast<int>(UnoptimizedFrameSlots()));
333 } 331 }
334 332
335 } // namespace compiler 333 } // namespace compiler
336 } // namespace internal 334 } // namespace internal
337 } // namespace v8 335 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698