| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |