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

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

Issue 5550003: Add optimized compiler support for generic global loads.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: ported to x64 and arm Created 9 years, 9 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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('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 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 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 1709
1710 1710
1711 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1711 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1712 LLoadGlobal* result = new LLoadGlobal(); 1712 LLoadGlobal* result = new LLoadGlobal();
1713 return instr->check_hole_value() 1713 return instr->check_hole_value()
1714 ? AssignEnvironment(DefineAsRegister(result)) 1714 ? AssignEnvironment(DefineAsRegister(result))
1715 : DefineAsRegister(result); 1715 : DefineAsRegister(result);
1716 } 1716 }
1717 1717
1718 1718
1719 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1720 LLoadGlobalGeneric* result = new LLoadGlobalGeneric;
1721 return MarkAsCall(DefineFixed(result, r0), instr);
1722 }
1723
1724
1719 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1725 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1720 if (instr->check_hole_value()) { 1726 if (instr->check_hole_value()) {
1721 LOperand* temp = TempRegister(); 1727 LOperand* temp = TempRegister();
1722 LOperand* value = UseRegister(instr->value()); 1728 LOperand* value = UseRegister(instr->value());
1723 return AssignEnvironment(new LStoreGlobal(value, temp)); 1729 return AssignEnvironment(new LStoreGlobal(value, temp));
1724 } else { 1730 } else {
1725 LOperand* value = UseRegisterAtStart(instr->value()); 1731 LOperand* value = UseRegisterAtStart(instr->value());
1726 return new LStoreGlobal(value, NULL); 1732 return new LStoreGlobal(value, NULL);
1727 } 1733 }
1728 } 1734 }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 2044
2039 2045
2040 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2046 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2041 HEnvironment* outer = current_block_->last_environment()->outer(); 2047 HEnvironment* outer = current_block_->last_environment()->outer();
2042 current_block_->UpdateEnvironment(outer); 2048 current_block_->UpdateEnvironment(outer);
2043 return NULL; 2049 return NULL;
2044 } 2050 }
2045 2051
2046 2052
2047 } } // namespace v8::internal 2053 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698