| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #else | 42 #else |
| 43 #error "Unknown architecture." | 43 #error "Unknown architecture." |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 namespace v8 { | 46 namespace v8 { |
| 47 namespace internal { | 47 namespace internal { |
| 48 | 48 |
| 49 | 49 |
| 50 #define DEFINE_OPERAND_CACHE(name, type) \ | 50 #define DEFINE_OPERAND_CACHE(name, type) \ |
| 51 name name::cache[name::kNumCachedOperands]; \ | 51 name name::cache[name::kNumCachedOperands]; \ |
| 52 void name::SetupCache() { \ | 52 void name::SetUpCache() { \ |
| 53 for (int i = 0; i < kNumCachedOperands; i++) { \ | 53 for (int i = 0; i < kNumCachedOperands; i++) { \ |
| 54 cache[i].ConvertTo(type, i); \ | 54 cache[i].ConvertTo(type, i); \ |
| 55 } \ | 55 } \ |
| 56 } \ | 56 } \ |
| 57 static bool name##_initialize() { \ | 57 static bool name##_initialize() { \ |
| 58 name::SetupCache(); \ | 58 name::SetUpCache(); \ |
| 59 return true; \ | 59 return true; \ |
| 60 } \ | 60 } \ |
| 61 static bool name##_cache_initialized = name##_initialize(); | 61 static bool name##_cache_initialized = name##_initialize(); |
| 62 | 62 |
| 63 DEFINE_OPERAND_CACHE(LConstantOperand, CONSTANT_OPERAND) | 63 DEFINE_OPERAND_CACHE(LConstantOperand, CONSTANT_OPERAND) |
| 64 DEFINE_OPERAND_CACHE(LStackSlot, STACK_SLOT) | 64 DEFINE_OPERAND_CACHE(LStackSlot, STACK_SLOT) |
| 65 DEFINE_OPERAND_CACHE(LDoubleStackSlot, DOUBLE_STACK_SLOT) | 65 DEFINE_OPERAND_CACHE(LDoubleStackSlot, DOUBLE_STACK_SLOT) |
| 66 DEFINE_OPERAND_CACHE(LRegister, REGISTER) | 66 DEFINE_OPERAND_CACHE(LRegister, REGISTER) |
| 67 DEFINE_OPERAND_CACHE(LDoubleRegister, DOUBLE_REGISTER) | 67 DEFINE_OPERAND_CACHE(LDoubleRegister, DOUBLE_REGISTER) |
| 68 | 68 |
| (...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2122 LiveRange* current = live_ranges()->at(i); | 2122 LiveRange* current = live_ranges()->at(i); |
| 2123 if (current != NULL) current->Verify(); | 2123 if (current != NULL) current->Verify(); |
| 2124 } | 2124 } |
| 2125 } | 2125 } |
| 2126 | 2126 |
| 2127 | 2127 |
| 2128 #endif | 2128 #endif |
| 2129 | 2129 |
| 2130 | 2130 |
| 2131 } } // namespace v8::internal | 2131 } } // namespace v8::internal |
| OLD | NEW |