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

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

Issue 6880204: Refactor lithium classes to reduce the number of virtual functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 7 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 441 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
442 object()->PrintTo(stream); 442 object()->PrintTo(stream);
443 stream->Add("["); 443 stream->Add("[");
444 key()->PrintTo(stream); 444 key()->PrintTo(stream);
445 stream->Add("] <- "); 445 stream->Add("] <- ");
446 value()->PrintTo(stream); 446 value()->PrintTo(stream);
447 } 447 }
448 448
449 449
450 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { 450 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) {
451 LGap* gap = new LGap(block); 451 LInstructionGap* gap = new LInstructionGap(block);
452 int index = -1; 452 int index = -1;
453 if (instr->IsControl()) { 453 if (instr->IsControl()) {
454 instructions_.Add(gap); 454 instructions_.Add(gap);
455 index = instructions_.length(); 455 index = instructions_.length();
456 instructions_.Add(instr); 456 instructions_.Add(instr);
457 } else { 457 } else {
458 index = instructions_.length(); 458 index = instructions_.length();
459 instructions_.Add(instr); 459 instructions_.Add(instr);
460 instructions_.Add(gap); 460 instructions_.Add(gap);
461 } 461 }
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
2132 2132
2133 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2133 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2134 HEnvironment* outer = current_block_->last_environment()->outer(); 2134 HEnvironment* outer = current_block_->last_environment()->outer();
2135 current_block_->UpdateEnvironment(outer); 2135 current_block_->UpdateEnvironment(outer);
2136 return NULL; 2136 return NULL;
2137 } 2137 }
2138 2138
2139 } } // namespace v8::internal 2139 } } // namespace v8::internal
2140 2140
2141 #endif // V8_TARGET_ARCH_X64 2141 #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