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

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

Issue 6026006: Simple support for const variables in Crankshaft.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 return NULL; 1627 return NULL;
1628 } 1628 }
1629 1629
1630 1630
1631 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { 1631 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) {
1632 LOperand* value = UseFixed(instr->value(), rax); 1632 LOperand* value = UseFixed(instr->value(), rax);
1633 return MarkAsCall(new LThrow(value), instr); 1633 return MarkAsCall(new LThrow(value), instr);
1634 } 1634 }
1635 1635
1636 1636
1637 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) {
1638 return NULL;
1639 }
1640
1641
1637 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { 1642 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) {
1638 // All HForceRepresentation instructions should be eliminated in the 1643 // All HForceRepresentation instructions should be eliminated in the
1639 // representation change phase of Hydrogen. 1644 // representation change phase of Hydrogen.
1640 UNREACHABLE(); 1645 UNREACHABLE();
1641 return NULL; 1646 return NULL;
1642 } 1647 }
1643 1648
1644 1649
1645 LInstruction* LChunkBuilder::DoChange(HChange* instr) { 1650 LInstruction* LChunkBuilder::DoChange(HChange* instr) {
1646 Representation from = instr->from(); 1651 Representation from = instr->from();
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 LOperand* key = UseOrConstantAtStart(instr->key()); 2224 LOperand* key = UseOrConstantAtStart(instr->key());
2220 LOperand* object = UseOrConstantAtStart(instr->object()); 2225 LOperand* object = UseOrConstantAtStart(instr->object());
2221 LIn* result = new LIn(key, object); 2226 LIn* result = new LIn(key, object);
2222 return MarkAsCall(DefineFixed(result, rax), instr); 2227 return MarkAsCall(DefineFixed(result, rax), instr);
2223 } 2228 }
2224 2229
2225 2230
2226 } } // namespace v8::internal 2231 } } // namespace v8::internal
2227 2232
2228 #endif // V8_TARGET_ARCH_X64 2233 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698