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

Side by Side Diff: src/arm/lithium-arm.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
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | test/mjsunit/compiler/regress-const.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 return NULL; 1626 return NULL;
1627 } 1627 }
1628 1628
1629 1629
1630 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { 1630 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) {
1631 LOperand* value = UseFixed(instr->value(), r0); 1631 LOperand* value = UseFixed(instr->value(), r0);
1632 return MarkAsCall(new LThrow(value), instr); 1632 return MarkAsCall(new LThrow(value), instr);
1633 } 1633 }
1634 1634
1635 1635
1636 LInstruction* LChunkBuilder::DoUseConst(HUseConst* instr) {
1637 return NULL;
1638 }
1639
1640
1636 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) { 1641 LInstruction* LChunkBuilder::DoForceRepresentation(HForceRepresentation* bad) {
1637 // All HForceRepresentation instructions should be eliminated in the 1642 // All HForceRepresentation instructions should be eliminated in the
1638 // representation change phase of Hydrogen. 1643 // representation change phase of Hydrogen.
1639 UNREACHABLE(); 1644 UNREACHABLE();
1640 return NULL; 1645 return NULL;
1641 } 1646 }
1642 1647
1643 1648
1644 LInstruction* LChunkBuilder::DoChange(HChange* instr) { 1649 LInstruction* LChunkBuilder::DoChange(HChange* instr) {
1645 Representation from = instr->from(); 1650 Representation from = instr->from();
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 2227
2223 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2228 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2224 LOperand* key = UseRegisterAtStart(instr->key()); 2229 LOperand* key = UseRegisterAtStart(instr->key());
2225 LOperand* object = UseRegisterAtStart(instr->object()); 2230 LOperand* object = UseRegisterAtStart(instr->object());
2226 LIn* result = new LIn(key, object); 2231 LIn* result = new LIn(key, object);
2227 return MarkAsCall(DefineFixed(result, r0), instr); 2232 return MarkAsCall(DefineFixed(result, r0), instr);
2228 } 2233 }
2229 2234
2230 2235
2231 } } // namespace v8::internal 2236 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | test/mjsunit/compiler/regress-const.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698