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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 register_allocation_data_ = nullptr; | 267 register_allocation_data_ = nullptr; |
268 } | 268 } |
269 | 269 |
270 void InitializeInstructionSequence() { | 270 void InitializeInstructionSequence() { |
271 DCHECK(sequence_ == nullptr); | 271 DCHECK(sequence_ == nullptr); |
272 InstructionBlocks* instruction_blocks = | 272 InstructionBlocks* instruction_blocks = |
273 InstructionSequence::InstructionBlocksFor(instruction_zone(), | 273 InstructionSequence::InstructionBlocksFor(instruction_zone(), |
274 schedule()); | 274 schedule()); |
275 sequence_ = new (instruction_zone()) InstructionSequence( | 275 sequence_ = new (instruction_zone()) InstructionSequence( |
276 info()->isolate(), instruction_zone(), instruction_blocks); | 276 info()->isolate(), instruction_zone(), instruction_blocks); |
277 #if DEBUG | |
278 sequence_->Validate(); | |
Benedikt Meurer
2016/02/05 04:58:06
Nit: How about moving this to the end of the Instr
Mircea Trofin
2016/02/05 16:10:58
Done.
| |
279 #endif | |
277 } | 280 } |
278 | 281 |
279 void InitializeFrameData(CallDescriptor* descriptor) { | 282 void InitializeFrameData(CallDescriptor* descriptor) { |
280 DCHECK(frame_ == nullptr); | 283 DCHECK(frame_ == nullptr); |
281 int fixed_frame_size = 0; | 284 int fixed_frame_size = 0; |
282 if (descriptor != nullptr) { | 285 if (descriptor != nullptr) { |
283 fixed_frame_size = (descriptor->IsCFunctionCall()) | 286 fixed_frame_size = (descriptor->IsCFunctionCall()) |
284 ? StandardFrameConstants::kFixedSlotCountAboveFp + | 287 ? StandardFrameConstants::kFixedSlotCountAboveFp + |
285 StandardFrameConstants::kCPSlotCount | 288 StandardFrameConstants::kCPSlotCount |
286 : StandardFrameConstants::kFixedSlotCount; | 289 : StandardFrameConstants::kFixedSlotCount; |
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1486 tcf << AsC1VRegisterAllocationData("CodeGen", | 1489 tcf << AsC1VRegisterAllocationData("CodeGen", |
1487 data->register_allocation_data()); | 1490 data->register_allocation_data()); |
1488 } | 1491 } |
1489 | 1492 |
1490 data->DeleteRegisterAllocationZone(); | 1493 data->DeleteRegisterAllocationZone(); |
1491 } | 1494 } |
1492 | 1495 |
1493 } // namespace compiler | 1496 } // namespace compiler |
1494 } // namespace internal | 1497 } // namespace internal |
1495 } // namespace v8 | 1498 } // namespace v8 |
OLD | NEW |