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

Side by Side Diff: src/lithium.cc

Issue 9160018: Remove unnecessary IGNORE policy from Lithium operands. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 8 years, 11 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/lithium.h ('k') | src/lithium-allocator.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 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 18 matching lines...) Expand all
29 #include "lithium.h" 29 #include "lithium.h"
30 30
31 namespace v8 { 31 namespace v8 {
32 namespace internal { 32 namespace internal {
33 33
34 34
35 void LOperand::PrintTo(StringStream* stream) { 35 void LOperand::PrintTo(StringStream* stream) {
36 LUnallocated* unalloc = NULL; 36 LUnallocated* unalloc = NULL;
37 switch (kind()) { 37 switch (kind()) {
38 case INVALID: 38 case INVALID:
39 stream->Add("(0)");
40 break;
39 break; 41 break;
Kevin Millikin (Chromium) 2012/01/24 02:06:56 You promised to write some dead code at lunch, and
fschneider 2012/01/24 02:13:51 Done :)
40 case UNALLOCATED: 42 case UNALLOCATED:
41 unalloc = LUnallocated::cast(this); 43 unalloc = LUnallocated::cast(this);
42 stream->Add("v%d", unalloc->virtual_register()); 44 stream->Add("v%d", unalloc->virtual_register());
43 switch (unalloc->policy()) { 45 switch (unalloc->policy()) {
44 case LUnallocated::NONE: 46 case LUnallocated::NONE:
45 break; 47 break;
46 case LUnallocated::FIXED_REGISTER: { 48 case LUnallocated::FIXED_REGISTER: {
47 const char* register_name = 49 const char* register_name =
48 Register::AllocationIndexToString(unalloc->fixed_index()); 50 Register::AllocationIndexToString(unalloc->fixed_index());
49 stream->Add("(=%s)", register_name); 51 stream->Add("(=%s)", register_name);
(...skipping 13 matching lines...) Expand all
63 break; 65 break;
64 case LUnallocated::WRITABLE_REGISTER: 66 case LUnallocated::WRITABLE_REGISTER:
65 stream->Add("(WR)"); 67 stream->Add("(WR)");
66 break; 68 break;
67 case LUnallocated::SAME_AS_FIRST_INPUT: 69 case LUnallocated::SAME_AS_FIRST_INPUT:
68 stream->Add("(1)"); 70 stream->Add("(1)");
69 break; 71 break;
70 case LUnallocated::ANY: 72 case LUnallocated::ANY:
71 stream->Add("(-)"); 73 stream->Add("(-)");
72 break; 74 break;
73 case LUnallocated::IGNORE:
74 stream->Add("(0)");
75 break;
76 } 75 }
77 break; 76 break;
78 case CONSTANT_OPERAND: 77 case CONSTANT_OPERAND:
79 stream->Add("[constant:%d]", index()); 78 stream->Add("[constant:%d]", index());
80 break; 79 break;
81 case STACK_SLOT: 80 case STACK_SLOT:
82 stream->Add("[stack:%d]", index()); 81 stream->Add("[stack:%d]", index());
83 break; 82 break;
84 case DOUBLE_STACK_SLOT: 83 case DOUBLE_STACK_SLOT:
85 stream->Add("[double_stack:%d]", index()); 84 stream->Add("[double_stack:%d]", index());
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 case DICTIONARY_ELEMENTS: 207 case DICTIONARY_ELEMENTS:
209 case NON_STRICT_ARGUMENTS_ELEMENTS: 208 case NON_STRICT_ARGUMENTS_ELEMENTS:
210 return kPointerSizeLog2; 209 return kPointerSizeLog2;
211 } 210 }
212 UNREACHABLE(); 211 UNREACHABLE();
213 return 0; 212 return 0;
214 } 213 }
215 214
216 215
217 } } // namespace v8::internal 216 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698