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

Side by Side Diff: src/crankshaft/lithium-allocator.h

Issue 1872203005: Fix printf formats (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unused param found by GC mole Created 4 years, 8 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
« no previous file with comments | « src/crankshaft/hydrogen-range-analysis.h ('k') | src/crankshaft/lithium-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_CRANKSHAFT_LITHIUM_ALLOCATOR_H_ 5 #ifndef V8_CRANKSHAFT_LITHIUM_ALLOCATOR_H_
6 #define V8_CRANKSHAFT_LITHIUM_ALLOCATOR_H_ 6 #define V8_CRANKSHAFT_LITHIUM_ALLOCATOR_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/compiler-specific.h"
9 #include "src/crankshaft/compilation-phase.h" 10 #include "src/crankshaft/compilation-phase.h"
10 #include "src/crankshaft/lithium.h" 11 #include "src/crankshaft/lithium.h"
11 #include "src/zone.h" 12 #include "src/zone.h"
12 13
13 namespace v8 { 14 namespace v8 {
14 namespace internal { 15 namespace internal {
15 16
16 // Forward declarations. 17 // Forward declarations.
17 class HBasicBlock; 18 class HBasicBlock;
18 class HGraph; 19 class HGraph;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 int spill_start_index_; 321 int spill_start_index_;
321 322
322 friend class LAllocator; // Assigns to kind_. 323 friend class LAllocator; // Assigns to kind_.
323 }; 324 };
324 325
325 326
326 class LAllocator BASE_EMBEDDED { 327 class LAllocator BASE_EMBEDDED {
327 public: 328 public:
328 LAllocator(int first_virtual_register, HGraph* graph); 329 LAllocator(int first_virtual_register, HGraph* graph);
329 330
330 static void TraceAlloc(const char* msg, ...); 331 static PRINTF_FORMAT(1, 2) void TraceAlloc(const char* msg, ...);
331 332
332 // Checks whether the value of a given virtual register is tagged. 333 // Checks whether the value of a given virtual register is tagged.
333 bool HasTaggedValue(int virtual_register) const; 334 bool HasTaggedValue(int virtual_register) const;
334 335
335 // Returns the register kind required by the given virtual register. 336 // Returns the register kind required by the given virtual register.
336 RegisterKind RequiredRegisterKind(int virtual_register) const; 337 RegisterKind RequiredRegisterKind(int virtual_register) const;
337 338
338 bool Allocate(LChunk* chunk); 339 bool Allocate(LChunk* chunk);
339 340
340 const ZoneList<LiveRange*>* live_ranges() const { return &live_ranges_; } 341 const ZoneList<LiveRange*>* live_ranges() const { return &live_ranges_; }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 size_t allocator_zone_start_allocation_size_; 567 size_t allocator_zone_start_allocation_size_;
567 568
568 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase); 569 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase);
569 }; 570 };
570 571
571 572
572 } // namespace internal 573 } // namespace internal
573 } // namespace v8 574 } // namespace v8
574 575
575 #endif // V8_CRANKSHAFT_LITHIUM_ALLOCATOR_H_ 576 #endif // V8_CRANKSHAFT_LITHIUM_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-range-analysis.h ('k') | src/crankshaft/lithium-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698