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

Side by Side Diff: src/compiler/instruction.h

Issue 2258073002: [Turbofan]: Use new MachineTypes in access-builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Code comments addressed. Created 4 years, 3 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 #ifndef V8_COMPILER_INSTRUCTION_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_H_
6 #define V8_COMPILER_INSTRUCTION_H_ 6 #define V8_COMPILER_INSTRUCTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <map> 10 #include <map>
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 InstructionBlock* GetInstructionBlock(int instruction_index) const; 1334 InstructionBlock* GetInstructionBlock(int instruction_index) const;
1335 1335
1336 static MachineRepresentation DefaultRepresentation() { 1336 static MachineRepresentation DefaultRepresentation() {
1337 return MachineType::PointerRepresentation(); 1337 return MachineType::PointerRepresentation();
1338 } 1338 }
1339 MachineRepresentation GetRepresentation(int virtual_register) const; 1339 MachineRepresentation GetRepresentation(int virtual_register) const;
1340 void MarkAsRepresentation(MachineRepresentation rep, int virtual_register); 1340 void MarkAsRepresentation(MachineRepresentation rep, int virtual_register);
1341 1341
1342 bool IsReference(int virtual_register) const { 1342 bool IsReference(int virtual_register) const {
1343 return GetRepresentation(virtual_register) == 1343 return GetRepresentation(virtual_register) ==
1344 MachineRepresentation::kTagged; 1344 MachineRepresentation::kTagged ||
1345 GetRepresentation(virtual_register) ==
1346 MachineRepresentation::kTaggedPointer;
1345 } 1347 }
1346 bool IsFP(int virtual_register) const { 1348 bool IsFP(int virtual_register) const {
1347 return IsFloatingPoint(GetRepresentation(virtual_register)); 1349 return IsFloatingPoint(GetRepresentation(virtual_register));
1348 } 1350 }
1349 bool IsFloat(int virtual_register) const { 1351 bool IsFloat(int virtual_register) const {
1350 return GetRepresentation(virtual_register) == 1352 return GetRepresentation(virtual_register) ==
1351 MachineRepresentation::kFloat32; 1353 MachineRepresentation::kFloat32;
1352 } 1354 }
1353 bool IsDouble(int virtual_register) const { 1355 bool IsDouble(int virtual_register) const {
1354 return GetRepresentation(virtual_register) == 1356 return GetRepresentation(virtual_register) ==
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1485 1487
1486 1488
1487 std::ostream& operator<<(std::ostream& os, 1489 std::ostream& operator<<(std::ostream& os,
1488 const PrintableInstructionSequence& code); 1490 const PrintableInstructionSequence& code);
1489 1491
1490 } // namespace compiler 1492 } // namespace compiler
1491 } // namespace internal 1493 } // namespace internal
1492 } // namespace v8 1494 } // namespace v8
1493 1495
1494 #endif // V8_COMPILER_INSTRUCTION_H_ 1496 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698