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

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

Issue 901603002: try to fix windows after r26424 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // Calls SetUpCache()/TearDownCache() for each subclass. 83 // Calls SetUpCache()/TearDownCache() for each subclass.
84 static void SetUpCaches(); 84 static void SetUpCaches();
85 static void TearDownCaches(); 85 static void TearDownCaches();
86 86
87 // TODO(dcarney): get rid of these 87 // TODO(dcarney): get rid of these
88 void* operator new(size_t, void* location) { return location; } 88 void* operator new(size_t, void* location) { return location; }
89 void* operator new(size_t size, Zone* zone) { 89 void* operator new(size_t size, Zone* zone) {
90 return zone->New(static_cast<int>(size)); 90 return zone->New(static_cast<int>(size));
91 } 91 }
92 void operator delete(void* pointer, Zone* zone) { UNREACHABLE(); }
92 93
93 protected: 94 protected:
94 InstructionOperand(Kind kind, int index, int virtual_register) 95 InstructionOperand(Kind kind, int index, int virtual_register)
95 : virtual_register_(virtual_register) { 96 : virtual_register_(virtual_register) {
96 ConvertTo(kind, index); 97 ConvertTo(kind, index);
97 } 98 }
98 typedef BitField<Kind, 0, 3> KindField; 99 typedef BitField<Kind, 0, 3> KindField;
99 100
100 uint32_t value_; 101 uint32_t value_;
101 // TODO(dcarney): this should really be unsigned. 102 // TODO(dcarney): this should really be unsigned.
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 1085
1085 1086
1086 std::ostream& operator<<(std::ostream& os, 1087 std::ostream& operator<<(std::ostream& os,
1087 const PrintableInstructionSequence& code); 1088 const PrintableInstructionSequence& code);
1088 1089
1089 } // namespace compiler 1090 } // namespace compiler
1090 } // namespace internal 1091 } // namespace internal
1091 } // namespace v8 1092 } // namespace v8
1092 1093
1093 #endif // V8_COMPILER_INSTRUCTION_H_ 1094 #endif // V8_COMPILER_INSTRUCTION_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698