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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.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 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 1736
1737 1737
1738 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1738 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1739 LLoadGlobal* result = new LLoadGlobal; 1739 LLoadGlobal* result = new LLoadGlobal;
1740 return instr->check_hole_value() 1740 return instr->check_hole_value()
1741 ? AssignEnvironment(DefineAsRegister(result)) 1741 ? AssignEnvironment(DefineAsRegister(result))
1742 : DefineAsRegister(result); 1742 : DefineAsRegister(result);
1743 } 1743 }
1744 1744
1745 1745
1746 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1747 LOperand* context = UseFixed(instr->context(), esi);
1748 LOperand* global_object = UseFixed(instr->global_object(), eax);
1749 LLoadGlobalGeneric* result = new LLoadGlobalGeneric(context, global_object);
1750 return MarkAsCall(DefineFixed(result, eax), instr);
1751 }
1752
1753
1746 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1754 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1747 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value())); 1755 LStoreGlobal* result = new LStoreGlobal(UseRegisterAtStart(instr->value()));
1748 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1756 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1749 } 1757 }
1750 1758
1751 1759
1752 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1760 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1753 LOperand* context = UseRegisterAtStart(instr->value()); 1761 LOperand* context = UseRegisterAtStart(instr->value());
1754 return DefineAsRegister(new LLoadContextSlot(context)); 1762 return DefineAsRegister(new LLoadContextSlot(context));
1755 } 1763 }
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
2082 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2090 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2083 HEnvironment* outer = current_block_->last_environment()->outer(); 2091 HEnvironment* outer = current_block_->last_environment()->outer();
2084 current_block_->UpdateEnvironment(outer); 2092 current_block_->UpdateEnvironment(outer);
2085 return NULL; 2093 return NULL;
2086 } 2094 }
2087 2095
2088 2096
2089 } } // namespace v8::internal 2097 } } // namespace v8::internal
2090 2098
2091 #endif // V8_TARGET_ARCH_IA32 2099 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698