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

Side by Side Diff: src/compiler/pipeline.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: Fix arm64 Created 5 years, 1 month 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 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 const char* debug_name) { 266 const char* debug_name) {
267 DCHECK(frame_ == nullptr); 267 DCHECK(frame_ == nullptr);
268 DCHECK(register_allocation_data_ == nullptr); 268 DCHECK(register_allocation_data_ == nullptr);
269 int fixed_frame_size = 0; 269 int fixed_frame_size = 0;
270 if (descriptor != nullptr) { 270 if (descriptor != nullptr) {
271 fixed_frame_size = (descriptor->kind() == CallDescriptor::kCallAddress) 271 fixed_frame_size = (descriptor->kind() == CallDescriptor::kCallAddress)
272 ? StandardFrameConstants::kFixedSlotCountAboveFp + 272 ? StandardFrameConstants::kFixedSlotCountAboveFp +
273 StandardFrameConstants::kCPSlotCount 273 StandardFrameConstants::kCPSlotCount
274 : StandardFrameConstants::kFixedSlotCount; 274 : StandardFrameConstants::kFixedSlotCount;
275 } 275 }
276 frame_ = new (instruction_zone()) Frame(fixed_frame_size); 276 bool needs_frame = descriptor->IsJSFunctionCall() ||
277 descriptor->kind() == CallDescriptor::kCallAddress;
Benedikt Meurer 2015/11/20 09:53:10 Nit: this looks somewhat ad-hoc; can we have some
danno 2015/11/23 14:35:22 Done.
danno 2015/11/23 14:35:22 Done.
danno 2015/11/24 12:02:00 Done.
278 frame_ = new (instruction_zone()) Frame(fixed_frame_size, needs_frame);
277 register_allocation_data_ = new (register_allocation_zone()) 279 register_allocation_data_ = new (register_allocation_zone())
278 RegisterAllocationData(config, register_allocation_zone(), frame(), 280 RegisterAllocationData(config, register_allocation_zone(), frame(),
279 sequence(), debug_name); 281 sequence(), debug_name);
280 } 282 }
281 283
282 private: 284 private:
283 Isolate* isolate_; 285 Isolate* isolate_;
284 CompilationInfo* info_; 286 CompilationInfo* info_;
285 Zone* outer_zone_; 287 Zone* outer_zone_;
286 ZonePool* const zone_pool_; 288 ZonePool* const zone_pool_;
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 tcf << AsC1VRegisterAllocationData("CodeGen", 1427 tcf << AsC1VRegisterAllocationData("CodeGen",
1426 data->register_allocation_data()); 1428 data->register_allocation_data());
1427 } 1429 }
1428 1430
1429 data->DeleteRegisterAllocationZone(); 1431 data->DeleteRegisterAllocationZone();
1430 } 1432 }
1431 1433
1432 } // namespace compiler 1434 } // namespace compiler
1433 } // namespace internal 1435 } // namespace internal
1434 } // namespace v8 1436 } // namespace v8
OLDNEW
« src/compiler/linkage.h ('K') | « src/compiler/linkage.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698