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

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

Issue 5753005: Make closures optimizable by Crankshaft compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing next round of Florian's comments Created 10 years 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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); 1219 if (check_hole_value()) stream->Add(" (deleteable/read-only)");
1220 } 1220 }
1221 1221
1222 1222
1223 void HStoreGlobal::PrintDataTo(StringStream* stream) const { 1223 void HStoreGlobal::PrintDataTo(StringStream* stream) const {
1224 stream->Add("[%p] = ", *cell()); 1224 stream->Add("[%p] = ", *cell());
1225 value()->PrintNameTo(stream); 1225 value()->PrintNameTo(stream);
1226 } 1226 }
1227 1227
1228 1228
1229 void HLoadContextSlot::PrintDataTo(StringStream* stream) const {
1230 stream->Add("[%d->%d]]", context_chain_length(), slot_index());
Kevin Millikin (Chromium) 2010/12/20 12:05:44 I think you have an extra "]" here. I'm not wild
antonm 2010/12/20 20:39:24 Done. I used -> syntax to mimic C/C++ structure's
1231 }
1232
1233
1229 // Implementation of type inference and type conversions. Calculates 1234 // Implementation of type inference and type conversions. Calculates
1230 // the inferred type of this instruction based on the input operands. 1235 // the inferred type of this instruction based on the input operands.
1231 1236
1232 HType HValue::CalculateInferredType() const { 1237 HType HValue::CalculateInferredType() const {
1233 return type_; 1238 return type_;
1234 } 1239 }
1235 1240
1236 1241
1237 HType HCheckMap::CalculateInferredType() const { 1242 HType HCheckMap::CalculateInferredType() const {
1238 return value()->type(); 1243 return value()->type();
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 1478
1474 1479
1475 void HCheckPrototypeMaps::Verify() const { 1480 void HCheckPrototypeMaps::Verify() const {
1476 HInstruction::Verify(); 1481 HInstruction::Verify();
1477 ASSERT(HasNoUses()); 1482 ASSERT(HasNoUses());
1478 } 1483 }
1479 1484
1480 #endif 1485 #endif
1481 1486
1482 } } // namespace v8::internal 1487 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698