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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 24243005: Use Unique<Map> in CompareMap. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplify Unique tests and disallow allocation during creation of unique in tests. Created 7 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/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.h » ('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 // 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 } 1045 }
1046 if (expected_input_types_.Contains(ToBooleanStub::SMI)) { 1046 if (expected_input_types_.Contains(ToBooleanStub::SMI)) {
1047 return Representation::Smi(); 1047 return Representation::Smi();
1048 } 1048 }
1049 return Representation::None(); 1049 return Representation::None();
1050 } 1050 }
1051 1051
1052 1052
1053 void HCompareMap::PrintDataTo(StringStream* stream) { 1053 void HCompareMap::PrintDataTo(StringStream* stream) {
1054 value()->PrintNameTo(stream); 1054 value()->PrintNameTo(stream);
1055 stream->Add(" (%p)", *map()); 1055 stream->Add(" (%p)", *map().handle());
1056 HControlInstruction::PrintDataTo(stream); 1056 HControlInstruction::PrintDataTo(stream);
1057 } 1057 }
1058 1058
1059 1059
1060 const char* HUnaryMathOperation::OpName() const { 1060 const char* HUnaryMathOperation::OpName() const {
1061 switch (op()) { 1061 switch (op()) {
1062 case kMathFloor: return "floor"; 1062 case kMathFloor: return "floor";
1063 case kMathRound: return "round"; 1063 case kMathRound: return "round";
1064 case kMathAbs: return "abs"; 1064 case kMathAbs: return "abs";
1065 case kMathLog: return "log"; 1065 case kMathLog: return "log";
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
4223 break; 4223 break;
4224 case kExternalMemory: 4224 case kExternalMemory:
4225 stream->Add("[external-memory]"); 4225 stream->Add("[external-memory]");
4226 break; 4226 break;
4227 } 4227 }
4228 4228
4229 stream->Add("@%d", offset()); 4229 stream->Add("@%d", offset());
4230 } 4230 }
4231 4231
4232 } } // namespace v8::internal 4232 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698