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

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: Next round Created 9 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/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-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 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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 if (check_hole_value()) stream->Add(" (deleteable/read-only)"); 1183 if (check_hole_value()) stream->Add(" (deleteable/read-only)");
1184 } 1184 }
1185 1185
1186 1186
1187 void HStoreGlobal::PrintDataTo(StringStream* stream) const { 1187 void HStoreGlobal::PrintDataTo(StringStream* stream) const {
1188 stream->Add("[%p] = ", *cell()); 1188 stream->Add("[%p] = ", *cell());
1189 value()->PrintNameTo(stream); 1189 value()->PrintNameTo(stream);
1190 } 1190 }
1191 1191
1192 1192
1193 void HLoadContextSlot::PrintDataTo(StringStream* stream) const {
1194 stream->Add("(%d, %d)", context_chain_length(), slot_index());
1195 }
1196
1197
1193 // Implementation of type inference and type conversions. Calculates 1198 // Implementation of type inference and type conversions. Calculates
1194 // the inferred type of this instruction based on the input operands. 1199 // the inferred type of this instruction based on the input operands.
1195 1200
1196 HType HValue::CalculateInferredType() const { 1201 HType HValue::CalculateInferredType() const {
1197 return type_; 1202 return type_;
1198 } 1203 }
1199 1204
1200 1205
1201 HType HCheckMap::CalculateInferredType() const { 1206 HType HCheckMap::CalculateInferredType() const {
1202 return value()->type(); 1207 return value()->type();
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 1442
1438 1443
1439 void HCheckPrototypeMaps::Verify() const { 1444 void HCheckPrototypeMaps::Verify() const {
1440 HInstruction::Verify(); 1445 HInstruction::Verify();
1441 ASSERT(HasNoUses()); 1446 ASSERT(HasNoUses());
1442 } 1447 }
1443 1448
1444 #endif 1449 #endif
1445 1450
1446 } } // namespace v8::internal 1451 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698