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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 6026006: Simple support for const variables in Crankshaft.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' 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 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 Use(instr->length()))); 1705 Use(instr->length())));
1706 } 1706 }
1707 1707
1708 1708
1709 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { 1709 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) {
1710 LOperand* value = UseFixed(instr->value(), eax); 1710 LOperand* value = UseFixed(instr->value(), eax);
1711 return MarkAsCall(new LThrow(value), instr); 1711 return MarkAsCall(new LThrow(value), instr);
1712 } 1712 }
1713 1713
1714 1714
1715 LInstruction* LChunkBuilder::DoInitConst(HInitConst* instr) {
1716 return NULL;
1717 }
1718
1719
1715 LInstruction* LChunkBuilder::DoChange(HChange* instr) { 1720 LInstruction* LChunkBuilder::DoChange(HChange* instr) {
1716 Representation from = instr->from(); 1721 Representation from = instr->from();
1717 Representation to = instr->to(); 1722 Representation to = instr->to();
1718 if (from.IsTagged()) { 1723 if (from.IsTagged()) {
1719 if (to.IsDouble()) { 1724 if (to.IsDouble()) {
1720 LOperand* value = UseRegister(instr->value()); 1725 LOperand* value = UseRegister(instr->value());
1721 LInstruction* res = new LNumberUntagD(value); 1726 LInstruction* res = new LNumberUntagD(value);
1722 return AssignEnvironment(DefineAsRegister(res)); 1727 return AssignEnvironment(DefineAsRegister(res));
1723 } else { 1728 } else {
1724 ASSERT(to.IsInteger32()); 1729 ASSERT(to.IsInteger32());
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 void LPointerMap::PrintTo(StringStream* stream) const { 2124 void LPointerMap::PrintTo(StringStream* stream) const {
2120 stream->Add("{"); 2125 stream->Add("{");
2121 for (int i = 0; i < pointer_operands_.length(); ++i) { 2126 for (int i = 0; i < pointer_operands_.length(); ++i) {
2122 if (i != 0) stream->Add(";"); 2127 if (i != 0) stream->Add(";");
2123 pointer_operands_[i]->PrintTo(stream); 2128 pointer_operands_[i]->PrintTo(stream);
2124 } 2129 }
2125 stream->Add("} @%d", position()); 2130 stream->Add("} @%d", position());
2126 } 2131 }
2127 2132
2128 } } // namespace v8::internal 2133 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698