Chromium Code Reviews| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 } | 277 } |
| 278 | 278 |
| 279 void InitializeFrameData(CallDescriptor* descriptor) { | 279 void InitializeFrameData(CallDescriptor* descriptor) { |
| 280 DCHECK(frame_ == nullptr); | 280 DCHECK(frame_ == nullptr); |
| 281 int fixed_frame_size = 0; | 281 int fixed_frame_size = 0; |
| 282 if (descriptor != nullptr) { | 282 if (descriptor != nullptr) { |
| 283 fixed_frame_size = (descriptor->IsCFunctionCall()) | 283 fixed_frame_size = (((descriptor->flags() & |
|
Benedikt Meurer
2016/02/22 18:16:38
Nit: For "flags" I'd prefer to not use explicit co
danno
2016/03/07 09:33:38
Done.
| |
| 284 ? StandardFrameConstants::kFixedSlotCountAboveFp + | 284 CallDescriptor::kHasStandardFrameHeader) != 0) |
| 285 StandardFrameConstants::kCPSlotCount | 285 ? StandardFrameConstants::kFixedSlotCount |
| 286 : StandardFrameConstants::kFixedSlotCount; | 286 : TypedFrameConstants::kFixedSlotCount); |
| 287 } | 287 } |
| 288 frame_ = new (instruction_zone()) Frame(fixed_frame_size, descriptor); | 288 frame_ = new (instruction_zone()) Frame(fixed_frame_size, descriptor); |
| 289 } | 289 } |
| 290 | 290 |
| 291 void InitializeRegisterAllocationData(const RegisterConfiguration* config, | 291 void InitializeRegisterAllocationData(const RegisterConfiguration* config, |
| 292 CallDescriptor* descriptor, | 292 CallDescriptor* descriptor, |
| 293 const char* debug_name) { | 293 const char* debug_name) { |
| 294 DCHECK(register_allocation_data_ == nullptr); | 294 DCHECK(register_allocation_data_ == nullptr); |
| 295 register_allocation_data_ = new (register_allocation_zone()) | 295 register_allocation_data_ = new (register_allocation_zone()) |
| 296 RegisterAllocationData(config, register_allocation_zone(), frame(), | 296 RegisterAllocationData(config, register_allocation_zone(), frame(), |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 data->DeleteRegisterAllocationZone(); | 1499 data->DeleteRegisterAllocationZone(); |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1502 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
| 1503 | 1503 |
| 1504 } // namespace compiler | 1504 } // namespace compiler |
| 1505 } // namespace internal | 1505 } // namespace internal |
| 1506 } // namespace v8 | 1506 } // namespace v8 |
| OLD | NEW |