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

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

Issue 6390003: Introduce a hydrogen value for contexts, support context slot assignment. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sorted Lithium instructions names. Created 9 years, 10 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 } 1186 }
1187 1187
1188 1188
1189 void HStoreGlobal::PrintDataTo(StringStream* stream) const { 1189 void HStoreGlobal::PrintDataTo(StringStream* stream) const {
1190 stream->Add("[%p] = ", *cell()); 1190 stream->Add("[%p] = ", *cell());
1191 value()->PrintNameTo(stream); 1191 value()->PrintNameTo(stream);
1192 } 1192 }
1193 1193
1194 1194
1195 void HLoadContextSlot::PrintDataTo(StringStream* stream) const { 1195 void HLoadContextSlot::PrintDataTo(StringStream* stream) const {
1196 stream->Add("(%d, %d)", context_chain_length(), slot_index()); 1196 value()->PrintNameTo(stream);
1197 stream->Add("[%d]", slot_index());
1197 } 1198 }
1198 1199
1199 1200
1201 void HStoreContextSlot::PrintDataTo(StringStream* stream) const {
1202 context()->PrintNameTo(stream);
1203 stream->Add("[%d] = ", slot_index());
1204 value()->PrintNameTo(stream);
1205 }
1206
1207
1200 // Implementation of type inference and type conversions. Calculates 1208 // Implementation of type inference and type conversions. Calculates
1201 // the inferred type of this instruction based on the input operands. 1209 // the inferred type of this instruction based on the input operands.
1202 1210
1203 HType HValue::CalculateInferredType() const { 1211 HType HValue::CalculateInferredType() const {
1204 return type_; 1212 return type_;
1205 } 1213 }
1206 1214
1207 1215
1208 HType HCheckMap::CalculateInferredType() const { 1216 HType HCheckMap::CalculateInferredType() const {
1209 return value()->type(); 1217 return value()->type();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 1457
1450 1458
1451 void HCheckPrototypeMaps::Verify() { 1459 void HCheckPrototypeMaps::Verify() {
1452 HInstruction::Verify(); 1460 HInstruction::Verify();
1453 ASSERT(HasNoUses()); 1461 ASSERT(HasNoUses());
1454 } 1462 }
1455 1463
1456 #endif 1464 #endif
1457 1465
1458 } } // namespace v8::internal 1466 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698