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

Side by Side Diff: src/compiler/pipeline.cc

Issue 1696043002: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: All platforms Created 4 years, 9 months 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 =
284 ? StandardFrameConstants::kFixedSlotCountAboveFp + 284 ((descriptor->flags() & CallDescriptor::kHasStandardFrameHeader)
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 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 } 1512 }
1513 1513
1514 data->DeleteRegisterAllocationZone(); 1514 data->DeleteRegisterAllocationZone();
1515 } 1515 }
1516 1516
1517 Isolate* Pipeline::isolate() const { return info()->isolate(); } 1517 Isolate* Pipeline::isolate() const { return info()->isolate(); }
1518 1518
1519 } // namespace compiler 1519 } // namespace compiler
1520 } // namespace internal 1520 } // namespace internal
1521 } // namespace v8 1521 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698