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

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

Issue 1876833003: [turbofan] Remove the CallDescriptor parameter in the constructor of Frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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.cc ('k') | no next file » | 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/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 DCHECK_EQ(0, descriptor->CalleeSavedRegisters()); 282 DCHECK_EQ(0, descriptor->CalleeSavedRegisters());
283 } 283 }
284 } 284 }
285 285
286 void InitializeFrameData(CallDescriptor* descriptor) { 286 void InitializeFrameData(CallDescriptor* descriptor) {
287 DCHECK(frame_ == nullptr); 287 DCHECK(frame_ == nullptr);
288 int fixed_frame_size = 0; 288 int fixed_frame_size = 0;
289 if (descriptor != nullptr) { 289 if (descriptor != nullptr) {
290 fixed_frame_size = CalculateFixedFrameSize(descriptor); 290 fixed_frame_size = CalculateFixedFrameSize(descriptor);
291 } 291 }
292 frame_ = new (instruction_zone()) Frame(fixed_frame_size, descriptor); 292 frame_ = new (instruction_zone()) Frame(fixed_frame_size);
293 } 293 }
294 294
295 void InitializeRegisterAllocationData(const RegisterConfiguration* config, 295 void InitializeRegisterAllocationData(const RegisterConfiguration* config,
296 CallDescriptor* descriptor, 296 CallDescriptor* descriptor,
297 const char* debug_name) { 297 const char* debug_name) {
298 DCHECK(register_allocation_data_ == nullptr); 298 DCHECK(register_allocation_data_ == nullptr);
299 register_allocation_data_ = new (register_allocation_zone()) 299 register_allocation_data_ = new (register_allocation_zone())
300 RegisterAllocationData(config, register_allocation_zone(), frame(), 300 RegisterAllocationData(config, register_allocation_zone(), frame(),
301 sequence(), debug_name); 301 sequence(), debug_name);
302 } 302 }
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 } 1569 }
1570 1570
1571 data->DeleteRegisterAllocationZone(); 1571 data->DeleteRegisterAllocationZone();
1572 } 1572 }
1573 1573
1574 Isolate* Pipeline::isolate() const { return info()->isolate(); } 1574 Isolate* Pipeline::isolate() const { return info()->isolate(); }
1575 1575
1576 } // namespace compiler 1576 } // namespace compiler
1577 } // namespace internal 1577 } // namespace internal
1578 } // namespace v8 1578 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698