| OLD | NEW |
| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/lithium.h" | 7 #include "src/lithium.h" |
| 8 #include "src/scopes.h" | 8 #include "src/scopes.h" |
| 9 #include "src/serialize.h" | 9 #include "src/serialize.h" |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 cache = new LSubKindOperand[kNumCachedOperands]; | 138 cache = new LSubKindOperand[kNumCachedOperands]; |
| 139 for (int i = 0; i < kNumCachedOperands; i++) { | 139 for (int i = 0; i < kNumCachedOperands; i++) { |
| 140 cache[i].ConvertTo(kOperandKind, i); | 140 cache[i].ConvertTo(kOperandKind, i); |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 | 144 |
| 145 template<LOperand::Kind kOperandKind, int kNumCachedOperands> | 145 template<LOperand::Kind kOperandKind, int kNumCachedOperands> |
| 146 void LSubKindOperand<kOperandKind, kNumCachedOperands>::TearDownCache() { | 146 void LSubKindOperand<kOperandKind, kNumCachedOperands>::TearDownCache() { |
| 147 delete[] cache; | 147 delete[] cache; |
| 148 cache = NULL; |
| 148 } | 149 } |
| 149 | 150 |
| 150 | 151 |
| 151 void LOperand::SetUpCaches() { | 152 void LOperand::SetUpCaches() { |
| 152 #define LITHIUM_OPERAND_SETUP(name, type, number) L##name::SetUpCache(); | 153 #define LITHIUM_OPERAND_SETUP(name, type, number) L##name::SetUpCache(); |
| 153 LITHIUM_OPERAND_LIST(LITHIUM_OPERAND_SETUP) | 154 LITHIUM_OPERAND_LIST(LITHIUM_OPERAND_SETUP) |
| 154 #undef LITHIUM_OPERAND_SETUP | 155 #undef LITHIUM_OPERAND_SETUP |
| 155 } | 156 } |
| 156 | 157 |
| 157 | 158 |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 643 |
| 643 | 644 |
| 644 LPhase::~LPhase() { | 645 LPhase::~LPhase() { |
| 645 if (ShouldProduceTraceOutput()) { | 646 if (ShouldProduceTraceOutput()) { |
| 646 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 647 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
| 647 } | 648 } |
| 648 } | 649 } |
| 649 | 650 |
| 650 | 651 |
| 651 } } // namespace v8::internal | 652 } } // namespace v8::internal |
| OLD | NEW |