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

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

Issue 6613019: Revert change 7048 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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/x64/lithium-x64.h ('k') | no next file » | 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 284 }
285 285
286 286
287 void LUnaryMathOperation::PrintDataTo(StringStream* stream) { 287 void LUnaryMathOperation::PrintDataTo(StringStream* stream) {
288 stream->Add("/%s ", hydrogen()->OpName()); 288 stream->Add("/%s ", hydrogen()->OpName());
289 InputAt(0)->PrintTo(stream); 289 InputAt(0)->PrintTo(stream);
290 } 290 }
291 291
292 292
293 void LLoadContextSlot::PrintDataTo(StringStream* stream) { 293 void LLoadContextSlot::PrintDataTo(StringStream* stream) {
294 InputAt(0)->PrintTo(stream);
294 stream->Add("[%d]", slot_index()); 295 stream->Add("[%d]", slot_index());
295 } 296 }
296 297
297 298
298 void LStoreContextSlot::PrintDataTo(StringStream* stream) { 299 void LStoreContextSlot::PrintDataTo(StringStream* stream) {
300 InputAt(0)->PrintTo(stream);
299 stream->Add("[%d] <- ", slot_index()); 301 stream->Add("[%d] <- ", slot_index());
300 InputAt(0)->PrintTo(stream); 302 InputAt(1)->PrintTo(stream);
301 } 303 }
302 304
303 305
304 void LCallKeyed::PrintDataTo(StringStream* stream) { 306 void LCallKeyed::PrintDataTo(StringStream* stream) {
305 stream->Add("[rcx] #%d / ", arity()); 307 stream->Add("[rcx] #%d / ", arity());
306 } 308 }
307 309
308 310
309 void LCallNamed::PrintDataTo(StringStream* stream) { 311 void LCallNamed::PrintDataTo(StringStream* stream) {
310 SmartPointer<char> name_string = name()->ToCString(); 312 SmartPointer<char> name_string = name()->ToCString();
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 1713
1712 1714
1713 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { 1715 LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
1714 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), 1716 LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()),
1715 TempRegister()); 1717 TempRegister());
1716 return instr->check_hole_value() ? AssignEnvironment(result) : result; 1718 return instr->check_hole_value() ? AssignEnvironment(result) : result;
1717 } 1719 }
1718 1720
1719 1721
1720 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1722 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1721 return DefineAsRegister(new LLoadContextSlot()); 1723 LOperand* context = UseRegisterAtStart(instr->value());
1724 return DefineAsRegister(new LLoadContextSlot(context));
1722 } 1725 }
1723 1726
1724 1727
1725 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1728 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1729 Abort("Unimplemented: DoStoreContextSlot"); // Temporarily disabled (whesse).
1730 LOperand* context;
1726 LOperand* value; 1731 LOperand* value;
1727 LOperand* temp_1 = NULL;
1728 LOperand* temp_2 = NULL;
1729 if (instr->NeedsWriteBarrier()) { 1732 if (instr->NeedsWriteBarrier()) {
1733 context = UseTempRegister(instr->context());
1730 value = UseTempRegister(instr->value()); 1734 value = UseTempRegister(instr->value());
1731 temp_1 = TempRegister();
1732 temp_2 = TempRegister();
1733 } else { 1735 } else {
1736 context = UseRegister(instr->context());
1734 value = UseRegister(instr->value()); 1737 value = UseRegister(instr->value());
1735 } 1738 }
1736 return new LStoreContextSlot(value, temp_1, temp_2); 1739 return new LStoreContextSlot(context, value);
1737 } 1740 }
1738 1741
1739 1742
1740 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1743 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1741 ASSERT(instr->representation().IsTagged()); 1744 ASSERT(instr->representation().IsTagged());
1742 LOperand* obj = UseRegisterAtStart(instr->object()); 1745 LOperand* obj = UseRegisterAtStart(instr->object());
1743 return DefineAsRegister(new LLoadNamedField(obj)); 1746 return DefineAsRegister(new LLoadNamedField(obj));
1744 } 1747 }
1745 1748
1746 1749
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 2035
2033 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2036 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2034 HEnvironment* outer = current_block_->last_environment()->outer(); 2037 HEnvironment* outer = current_block_->last_environment()->outer();
2035 current_block_->UpdateEnvironment(outer); 2038 current_block_->UpdateEnvironment(outer);
2036 return NULL; 2039 return NULL;
2037 } 2040 }
2038 2041
2039 } } // namespace v8::internal 2042 } } // namespace v8::internal
2040 2043
2041 #endif // V8_TARGET_ARCH_X64 2044 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698