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

Side by Side Diff: src/ia32/lithium-ia32.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, 8 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.h » ('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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { 442 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) {
443 object()->PrintTo(stream); 443 object()->PrintTo(stream);
444 stream->Add("["); 444 stream->Add("[");
445 key()->PrintTo(stream); 445 key()->PrintTo(stream);
446 stream->Add("] <- "); 446 stream->Add("] <- ");
447 value()->PrintTo(stream); 447 value()->PrintTo(stream);
448 } 448 }
449 449
450 450
451 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { 451 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) {
452 LGap* gap = new LGap(block); 452 LInstructionGap* gap = new LInstructionGap(block);
453 int index = -1; 453 int index = -1;
454 if (instr->IsControl()) { 454 if (instr->IsControl()) {
455 instructions_.Add(gap); 455 instructions_.Add(gap);
456 index = instructions_.length(); 456 index = instructions_.length();
457 instructions_.Add(instr); 457 instructions_.Add(instr);
458 } else { 458 } else {
459 index = instructions_.length(); 459 index = instructions_.length();
460 instructions_.Add(instr); 460 instructions_.Add(instr);
461 instructions_.Add(gap); 461 instructions_.Add(gap);
462 } 462 }
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { 2201 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) {
2202 HEnvironment* outer = current_block_->last_environment()->outer(); 2202 HEnvironment* outer = current_block_->last_environment()->outer();
2203 current_block_->UpdateEnvironment(outer); 2203 current_block_->UpdateEnvironment(outer);
2204 return NULL; 2204 return NULL;
2205 } 2205 }
2206 2206
2207 2207
2208 } } // namespace v8::internal 2208 } } // namespace v8::internal
2209 2209
2210 #endif // V8_TARGET_ARCH_IA32 2210 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698