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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |