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

Side by Side Diff: src/mips64/lithium-mips64.h

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/mips64/lithium-gap-resolver-mips64.cc ('k') | src/mips64/lithium-mips64.cc » ('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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_
6 #define V8_MIPS_LITHIUM_MIPS_H_ 6 #define V8_MIPS_LITHIUM_MIPS_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ 164 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
165 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ 165 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \
166 return LInstruction::k##type; \ 166 return LInstruction::k##type; \
167 } \ 167 } \
168 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ 168 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \
169 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ 169 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \
170 return mnemonic; \ 170 return mnemonic; \
171 } \ 171 } \
172 static L##type* cast(LInstruction* instr) { \ 172 static L##type* cast(LInstruction* instr) { \
173 ASSERT(instr->Is##type()); \ 173 DCHECK(instr->Is##type()); \
174 return reinterpret_cast<L##type*>(instr); \ 174 return reinterpret_cast<L##type*>(instr); \
175 } 175 }
176 176
177 177
178 #define DECLARE_HYDROGEN_ACCESSOR(type) \ 178 #define DECLARE_HYDROGEN_ACCESSOR(type) \
179 H##type* hydrogen() const { \ 179 H##type* hydrogen() const { \
180 return H##type::cast(hydrogen_value()); \ 180 return H##type::cast(hydrogen_value()); \
181 } 181 }
182 182
183 183
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 parallel_moves_[BEFORE] = NULL; 323 parallel_moves_[BEFORE] = NULL;
324 parallel_moves_[START] = NULL; 324 parallel_moves_[START] = NULL;
325 parallel_moves_[END] = NULL; 325 parallel_moves_[END] = NULL;
326 parallel_moves_[AFTER] = NULL; 326 parallel_moves_[AFTER] = NULL;
327 } 327 }
328 328
329 // Can't use the DECLARE-macro here because of sub-classes. 329 // Can't use the DECLARE-macro here because of sub-classes.
330 virtual bool IsGap() const V8_FINAL V8_OVERRIDE { return true; } 330 virtual bool IsGap() const V8_FINAL V8_OVERRIDE { return true; }
331 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 331 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
332 static LGap* cast(LInstruction* instr) { 332 static LGap* cast(LInstruction* instr) {
333 ASSERT(instr->IsGap()); 333 DCHECK(instr->IsGap());
334 return reinterpret_cast<LGap*>(instr); 334 return reinterpret_cast<LGap*>(instr);
335 } 335 }
336 336
337 bool IsRedundant() const; 337 bool IsRedundant() const;
338 338
339 HBasicBlock* block() const { return block_; } 339 HBasicBlock* block() const { return block_; }
340 340
341 enum InnerPosition { 341 enum InnerPosition {
342 BEFORE, 342 BEFORE,
343 START, 343 START,
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 inputs_[1] = context; 1533 inputs_[1] = context;
1534 inputs_[2] = parameter_count; 1534 inputs_[2] = parameter_count;
1535 } 1535 }
1536 1536
1537 LOperand* value() { return inputs_[0]; } 1537 LOperand* value() { return inputs_[0]; }
1538 1538
1539 bool has_constant_parameter_count() { 1539 bool has_constant_parameter_count() {
1540 return parameter_count()->IsConstantOperand(); 1540 return parameter_count()->IsConstantOperand();
1541 } 1541 }
1542 LConstantOperand* constant_parameter_count() { 1542 LConstantOperand* constant_parameter_count() {
1543 ASSERT(has_constant_parameter_count()); 1543 DCHECK(has_constant_parameter_count());
1544 return LConstantOperand::cast(parameter_count()); 1544 return LConstantOperand::cast(parameter_count());
1545 } 1545 }
1546 LOperand* parameter_count() { return inputs_[2]; } 1546 LOperand* parameter_count() { return inputs_[2]; }
1547 1547
1548 DECLARE_CONCRETE_INSTRUCTION(Return, "return") 1548 DECLARE_CONCRETE_INSTRUCTION(Return, "return")
1549 }; 1549 };
1550 1550
1551 1551
1552 class LLoadNamedField V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1552 class LLoadNamedField V8_FINAL : public LTemplateInstruction<1, 1, 0> {
1553 public: 1553 public:
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 }; 1834 };
1835 1835
1836 1836
1837 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { 1837 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> {
1838 public: 1838 public:
1839 LCallWithDescriptor(const InterfaceDescriptor* descriptor, 1839 LCallWithDescriptor(const InterfaceDescriptor* descriptor,
1840 const ZoneList<LOperand*>& operands, 1840 const ZoneList<LOperand*>& operands,
1841 Zone* zone) 1841 Zone* zone)
1842 : descriptor_(descriptor), 1842 : descriptor_(descriptor),
1843 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { 1843 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) {
1844 ASSERT(descriptor->GetRegisterParameterCount() + 1 == operands.length()); 1844 DCHECK(descriptor->GetRegisterParameterCount() + 1 == operands.length());
1845 inputs_.AddAll(operands, zone); 1845 inputs_.AddAll(operands, zone);
1846 } 1846 }
1847 1847
1848 LOperand* target() const { return inputs_[0]; } 1848 LOperand* target() const { return inputs_[0]; }
1849 1849
1850 const InterfaceDescriptor* descriptor() { return descriptor_; } 1850 const InterfaceDescriptor* descriptor() { return descriptor_; }
1851 1851
1852 private: 1852 private:
1853 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") 1853 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor")
1854 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) 1854 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor)
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 2839
2840 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2840 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2841 }; 2841 };
2842 2842
2843 #undef DECLARE_HYDROGEN_ACCESSOR 2843 #undef DECLARE_HYDROGEN_ACCESSOR
2844 #undef DECLARE_CONCRETE_INSTRUCTION 2844 #undef DECLARE_CONCRETE_INSTRUCTION
2845 2845
2846 } } // namespace v8::internal 2846 } } // namespace v8::internal
2847 2847
2848 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2848 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips64/lithium-gap-resolver-mips64.cc ('k') | src/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698