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

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

Issue 1578723002: [turbofan] Build s/NULL/nullptr/g and CHECK(x != nullptr) to CHECK_NOT_NULL(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/frame.h ('k') | src/compiler/graph-reducer.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 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, const CallDescriptor* descriptor) 15 Frame::Frame(int fixed_frame_size_in_slots, const CallDescriptor* descriptor)
16 : needs_frame_((descriptor != nullptr) && 16 : needs_frame_((descriptor != nullptr) &&
17 descriptor->RequiresFrameAsIncoming()), 17 descriptor->RequiresFrameAsIncoming()),
18 frame_slot_count_(fixed_frame_size_in_slots), 18 frame_slot_count_(fixed_frame_size_in_slots),
19 callee_saved_slot_count_(0), 19 callee_saved_slot_count_(0),
20 spill_slot_count_(0), 20 spill_slot_count_(0),
21 allocated_registers_(NULL), 21 allocated_registers_(nullptr),
22 allocated_double_registers_(NULL) {} 22 allocated_double_registers_(nullptr) {}
23 23
24 24
25 void FrameAccessState::SetFrameAccessToDefault() { 25 void FrameAccessState::SetFrameAccessToDefault() {
26 if (frame()->needs_frame() && !FLAG_turbo_sp_frame_access) { 26 if (frame()->needs_frame() && !FLAG_turbo_sp_frame_access) {
27 SetFrameAccessToFP(); 27 SetFrameAccessToFP();
28 } else { 28 } else {
29 SetFrameAccessToSP(); 29 SetFrameAccessToSP();
30 } 30 }
31 } 31 }
32 32
(...skipping 10 matching lines...) Expand all
43 int sp_offset = 43 int sp_offset =
44 offset + ((frame()->GetSpToFpSlotCount() + sp_delta()) * kPointerSize); 44 offset + ((frame()->GetSpToFpSlotCount() + sp_delta()) * kPointerSize);
45 return FrameOffset::FromStackPointer(sp_offset); 45 return FrameOffset::FromStackPointer(sp_offset);
46 } 46 }
47 } 47 }
48 48
49 49
50 } // namespace compiler 50 } // namespace compiler
51 } // namespace internal 51 } // namespace internal
52 } // namespace v8 52 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/frame.h ('k') | src/compiler/graph-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698