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

Side by Side Diff: src/lithium.cc

Issue 504093002: Fix and re-enable test-api/InitializeAndDispose. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/isolate.cc ('k') | src/sampler.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 #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
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
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
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698