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

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

Issue 6306014: Fix reintroduction of global variables that have been deleted. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: x64 LoadRoot and only check in lithium when needed Created 9 years, 11 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 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 1595
1596 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { 1596 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) {
1597 LLoadGlobal* result = new LLoadGlobal(); 1597 LLoadGlobal* result = new LLoadGlobal();
1598 return instr->check_hole_value() 1598 return instr->check_hole_value()
1599 ? AssignEnvironment(DefineAsRegister(result)) 1599 ? AssignEnvironment(DefineAsRegister(result))
1600 : DefineAsRegister(result); 1600 : DefineAsRegister(result);
1601 } 1601 }
1602 1602
1603 1603
1604 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1604 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1605 return new LStoreGlobal(UseRegisterAtStart(instr->value())); 1605 LOperand* temp = instr->check_hole_value() ? TempRegister() : NULL;
Kevin Millikin (Chromium) 2011/01/27 07:56:07 OK, but since almost every line has to check the s
Mads Ager (chromium) 2011/01/27 08:33:36 Done.
1606 LOperand* value = instr->check_hole_value()
1607 ? UseRegister(instr->value())
1608 : UseRegisterAtStart(instr->value());
1609 LStoreGlobal* result = new LStoreGlobal(value, temp);
1610 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1606 } 1611 }
1607 1612
1608 1613
1609 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1614 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1610 return DefineAsRegister(new LLoadContextSlot); 1615 return DefineAsRegister(new LLoadContextSlot);
1611 } 1616 }
1612 1617
1613 1618
1614 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1619 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1615 return DefineAsRegister( 1620 return DefineAsRegister(
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 1864
1860 1865
1861 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 1866 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
1862 HEnvironment* outer = current_block_->last_environment()->outer(); 1867 HEnvironment* outer = current_block_->last_environment()->outer();
1863 current_block_->UpdateEnvironment(outer); 1868 current_block_->UpdateEnvironment(outer);
1864 return NULL; 1869 return NULL;
1865 } 1870 }
1866 1871
1867 1872
1868 } } // namespace v8::internal 1873 } } // 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