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

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

Issue 1460183002: [turbofan] Add general support for sp-based frame access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: All platforms Created 5 years 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/frame.h" 5 #include "src/compiler/frame.h"
6 6
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/register-allocator.h" 8 #include "src/compiler/register-allocator.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 Frame::Frame(int fixed_frame_size_in_slots) 15 Frame::Frame(int fixed_frame_size_in_slots, const CallDescriptor* descriptor)
16 : frame_slot_count_(fixed_frame_size_in_slots), 16 : needs_frame_((descriptor != nullptr) &&
17 outgoing_parameter_slot_count_(0), 17 descriptor->RequiresFrameAsIncoming()),
18 frame_slot_count_(fixed_frame_size_in_slots),
18 callee_saved_slot_count_(0), 19 callee_saved_slot_count_(0),
19 spill_slot_count_(0), 20 spill_slot_count_(0),
20 allocated_registers_(NULL), 21 allocated_registers_(NULL),
21 allocated_double_registers_(NULL) {} 22 allocated_double_registers_(NULL) {}
22 23
23 } // namespace compiler 24 } // namespace compiler
24 } // namespace internal 25 } // namespace internal
25 } // namespace v8 26 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698