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

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

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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.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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 key()->PrintTo(stream); 378 key()->PrintTo(stream);
379 stream->Add("] <- "); 379 stream->Add("] <- ");
380 value()->PrintTo(stream); 380 value()->PrintTo(stream);
381 } 381 }
382 382
383 383
384 LChunk::LChunk(CompilationInfo* info, HGraph* graph) 384 LChunk::LChunk(CompilationInfo* info, HGraph* graph)
385 : spill_slot_count_(0), 385 : spill_slot_count_(0),
386 info_(info), 386 info_(info),
387 graph_(graph), 387 graph_(graph),
388 instructions_(32), 388 instructions_(graph->zone(), 32),
389 pointer_maps_(8), 389 pointer_maps_(graph->zone(), 8),
390 inlined_closures_(1) { 390 inlined_closures_(graph->zone(), 1) {
391 } 391 }
392 392
393 393
394 int LChunk::GetNextSpillIndex(bool is_double) { 394 int LChunk::GetNextSpillIndex(bool is_double) {
395 // Skip a slot if for a double-width slot. 395 // Skip a slot if for a double-width slot.
396 if (is_double) spill_slot_count_++; 396 if (is_double) spill_slot_count_++;
397 return spill_slot_count_++; 397 return spill_slot_count_++;
398 } 398 }
399 399
400 400
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 753
754 754
755 LInstruction* LChunkBuilder::MarkAsSaveDoubles(LInstruction* instr) { 755 LInstruction* LChunkBuilder::MarkAsSaveDoubles(LInstruction* instr) {
756 instr->MarkAsSaveDoubles(); 756 instr->MarkAsSaveDoubles();
757 return instr; 757 return instr;
758 } 758 }
759 759
760 760
761 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) { 761 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) {
762 ASSERT(!instr->HasPointerMap()); 762 ASSERT(!instr->HasPointerMap());
763 instr->set_pointer_map(new LPointerMap(position_)); 763 instr->set_pointer_map(new LPointerMap(info_->zone(), position_));
764 return instr; 764 return instr;
765 } 765 }
766 766
767 767
768 LUnallocated* LChunkBuilder::TempRegister() { 768 LUnallocated* LChunkBuilder::TempRegister() {
769 LUnallocated* operand = new LUnallocated(LUnallocated::MUST_HAVE_REGISTER); 769 LUnallocated* operand = new LUnallocated(LUnallocated::MUST_HAVE_REGISTER);
770 allocator_->RecordTemporary(operand); 770 allocator_->RecordTemporary(operand);
771 return operand; 771 return operand;
772 } 772 }
773 773
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 2153
2154 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2154 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2155 LOperand* key = UseRegisterAtStart(instr->key()); 2155 LOperand* key = UseRegisterAtStart(instr->key());
2156 LOperand* object = UseRegisterAtStart(instr->object()); 2156 LOperand* object = UseRegisterAtStart(instr->object());
2157 LIn* result = new LIn(key, object); 2157 LIn* result = new LIn(key, object);
2158 return MarkAsCall(DefineFixed(result, r0), instr); 2158 return MarkAsCall(DefineFixed(result, r0), instr);
2159 } 2159 }
2160 2160
2161 2161
2162 } } // namespace v8::internal 2162 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698