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/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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 | 260 |
261 void InitializeRegisterAllocationData(const RegisterConfiguration* config, | 261 void InitializeRegisterAllocationData(const RegisterConfiguration* config, |
262 CallDescriptor* descriptor, | 262 CallDescriptor* descriptor, |
263 const char* debug_name) { | 263 const char* debug_name) { |
264 DCHECK(frame_ == nullptr); | 264 DCHECK(frame_ == nullptr); |
265 DCHECK(register_allocation_data_ == nullptr); | 265 DCHECK(register_allocation_data_ == nullptr); |
266 int fixed_frame_size = 0; | 266 int fixed_frame_size = 0; |
267 if (descriptor != nullptr) { | 267 if (descriptor != nullptr) { |
268 fixed_frame_size = (descriptor->kind() == CallDescriptor::kCallAddress) | 268 fixed_frame_size = (descriptor->kind() == CallDescriptor::kCallAddress) |
269 ? StandardFrameConstants::kFixedSlotCountAboveFp | 269 ? StandardFrameConstants::kFixedSlotCountAboveFp + |
| 270 StandardFrameConstants::kCPSlotCount |
270 : StandardFrameConstants::kFixedSlotCount; | 271 : StandardFrameConstants::kFixedSlotCount; |
271 } | 272 } |
272 frame_ = new (instruction_zone()) Frame(fixed_frame_size); | 273 frame_ = new (instruction_zone()) Frame(fixed_frame_size); |
273 register_allocation_data_ = new (register_allocation_zone()) | 274 register_allocation_data_ = new (register_allocation_zone()) |
274 RegisterAllocationData(config, register_allocation_zone(), frame(), | 275 RegisterAllocationData(config, register_allocation_zone(), frame(), |
275 sequence(), debug_name); | 276 sequence(), debug_name); |
276 } | 277 } |
277 | 278 |
278 private: | 279 private: |
279 Isolate* isolate_; | 280 Isolate* isolate_; |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 tcf << AsC1VRegisterAllocationData("CodeGen", | 1403 tcf << AsC1VRegisterAllocationData("CodeGen", |
1403 data->register_allocation_data()); | 1404 data->register_allocation_data()); |
1404 } | 1405 } |
1405 | 1406 |
1406 data->DeleteRegisterAllocationZone(); | 1407 data->DeleteRegisterAllocationZone(); |
1407 } | 1408 } |
1408 | 1409 |
1409 } // namespace compiler | 1410 } // namespace compiler |
1410 } // namespace internal | 1411 } // namespace internal |
1411 } // namespace v8 | 1412 } // namespace v8 |
OLD | NEW |