Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 // Types of uncatchable exceptions. | 78 // Types of uncatchable exceptions. |
| 79 enum UncatchableExceptionType { OUT_OF_MEMORY, TERMINATION }; | 79 enum UncatchableExceptionType { OUT_OF_MEMORY, TERMINATION }; |
| 80 | 80 |
| 81 | 81 |
| 82 #if V8_TARGET_ARCH_IA32 | 82 #if V8_TARGET_ARCH_IA32 |
| 83 #include "ia32/codegen-ia32.h" | 83 #include "ia32/codegen-ia32.h" |
| 84 #elif V8_TARGET_ARCH_X64 | 84 #elif V8_TARGET_ARCH_X64 |
| 85 #include "x64/codegen-x64.h" | 85 #include "x64/codegen-x64.h" |
| 86 #elif V8_TARGET_ARCH_ARM | 86 #elif V8_TARGET_ARCH_ARM |
| 87 #include "arm/codegen-arm.h" | 87 #include "arm/codegen-arm.h" |
| 88 #elif V8_TARGET_ARCH_MIPS | |
| 89 #include "mips/codegen-mips.h" | |
| 90 // Include the declaration of TestMIPSStub | |
| 91 #include "mips/test-mips.h" | |
| 88 #else | 92 #else |
| 89 #error Unsupported target architecture. | 93 #error Unsupported target architecture. |
| 90 #endif | 94 #endif |
| 91 | 95 |
| 92 #include "register-allocator.h" | 96 #include "register-allocator.h" |
| 93 | 97 |
| 94 namespace v8 { | 98 namespace v8 { |
| 95 namespace internal { | 99 namespace internal { |
| 96 | 100 |
| 97 | 101 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 | 143 |
| 140 #ifdef DEBUG | 144 #ifdef DEBUG |
| 141 void set_comment(const char* comment) { comment_ = comment; } | 145 void set_comment(const char* comment) { comment_ = comment; } |
| 142 const char* comment() const { return comment_; } | 146 const char* comment() const { return comment_; } |
| 143 #else | 147 #else |
| 144 void set_comment(const char* comment) { } | 148 void set_comment(const char* comment) { } |
| 145 const char* comment() const { return ""; } | 149 const char* comment() const { return ""; } |
| 146 #endif | 150 #endif |
| 147 | 151 |
| 148 inline void Jump(); | 152 inline void Jump(); |
| 153 #ifndef V8_TARGET_ARCH_MIPS | |
|
Søren Thygesen Gjesse
2010/01/19 22:59:12
Having a platform specific #ifdef in a platform in
Alexandre
2010/01/22 23:08:42
This is necessary for MIPS. We don't have a cmp in
| |
| 149 inline void Branch(Condition cc); | 154 inline void Branch(Condition cc); |
| 155 #else | |
| 156 inline void Branch(Condition cc, Register src1 = zero_reg, | |
|
Søren Thygesen Gjesse
2010/01/19 22:59:12
Look at http://google-styleguide.googlecode.com/sv
Alexandre
2010/01/22 23:08:42
Style issue fixed.
On 2010/01/19 22:59:12, Søren G
| |
| 157 const Operand& src2 = Operand(zero_reg)); | |
| 158 #endif | |
| 150 void BindExit() { masm_->bind(&exit_label_); } | 159 void BindExit() { masm_->bind(&exit_label_); } |
| 151 | 160 |
| 152 void SaveRegisters(); | 161 void SaveRegisters(); |
| 153 void RestoreRegisters(); | 162 void RestoreRegisters(); |
| 154 | 163 |
| 155 protected: | 164 protected: |
| 156 MacroAssembler* masm_; | 165 MacroAssembler* masm_; |
| 157 | 166 |
| 158 private: | 167 private: |
| 159 // Constants indicating special actions. They should not be multiples | 168 // Constants indicating special actions. They should not be multiples |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 PrintF("ArgumentsAccessStub (type %d)\n", type_); | 426 PrintF("ArgumentsAccessStub (type %d)\n", type_); |
| 418 } | 427 } |
| 419 #endif | 428 #endif |
| 420 }; | 429 }; |
| 421 | 430 |
| 422 | 431 |
| 423 } // namespace internal | 432 } // namespace internal |
| 424 } // namespace v8 | 433 } // namespace v8 |
| 425 | 434 |
| 426 #endif // V8_CODEGEN_H_ | 435 #endif // V8_CODEGEN_H_ |
| OLD | NEW |