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

Side by Side Diff: src/lithium-allocator.cc

Issue 1301583005: Rename ParserInfo::function() and CompilationInfo::function() to literal(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/mips/lithium-codegen-mips.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/hydrogen.h" 7 #include "src/hydrogen.h"
8 #include "src/lithium-inl.h" 8 #include "src/lithium-inl.h"
9 #include "src/lithium-allocator-inl.h" 9 #include "src/lithium-allocator-inl.h"
10 #include "src/string-stream.h" 10 #include "src/string-stream.h"
(...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 while (!iterator.Done()) { 1336 while (!iterator.Done()) {
1337 found = true; 1337 found = true;
1338 int operand_index = iterator.Current(); 1338 int operand_index = iterator.Current();
1339 if (chunk_->info()->IsStub()) { 1339 if (chunk_->info()->IsStub()) {
1340 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey(); 1340 CodeStub::Major major_key = chunk_->info()->code_stub()->MajorKey();
1341 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false)); 1341 PrintF("Function: %s\n", CodeStub::MajorName(major_key, false));
1342 } else { 1342 } else {
1343 DCHECK(chunk_->info()->IsOptimizing()); 1343 DCHECK(chunk_->info()->IsOptimizing());
1344 AllowHandleDereference allow_deref; 1344 AllowHandleDereference allow_deref;
1345 PrintF("Function: %s\n", 1345 PrintF("Function: %s\n",
1346 chunk_->info()->function()->debug_name()->ToCString().get()); 1346 chunk_->info()->literal()->debug_name()->ToCString().get());
1347 } 1347 }
1348 PrintF("Value %d used before first definition!\n", operand_index); 1348 PrintF("Value %d used before first definition!\n", operand_index);
1349 LiveRange* range = LiveRangeFor(operand_index); 1349 LiveRange* range = LiveRangeFor(operand_index);
1350 PrintF("First use is at %d\n", range->first_pos()->pos().Value()); 1350 PrintF("First use is at %d\n", range->first_pos()->pos().Value());
1351 iterator.Advance(); 1351 iterator.Advance();
1352 } 1352 }
1353 DCHECK(!found); 1353 DCHECK(!found);
1354 } 1354 }
1355 #endif 1355 #endif
1356 } 1356 }
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 } 2185 }
2186 2186
2187 #ifdef DEBUG 2187 #ifdef DEBUG
2188 if (allocator_ != NULL) allocator_->Verify(); 2188 if (allocator_ != NULL) allocator_->Verify();
2189 #endif 2189 #endif
2190 } 2190 }
2191 2191
2192 2192
2193 } // namespace internal 2193 } // namespace internal
2194 } // namespace v8 2194 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698