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

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

Issue 9703110: Revert dynamic frame alignment (r9415) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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/ia32/lithium-ia32.h ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 stream->Add(" length "); 361 stream->Add(" length ");
362 length()->PrintTo(stream); 362 length()->PrintTo(stream);
363 363
364 stream->Add(" index "); 364 stream->Add(" index ");
365 index()->PrintTo(stream); 365 index()->PrintTo(stream);
366 } 366 }
367 367
368 368
369 int LChunk::GetNextSpillIndex(bool is_double) { 369 int LChunk::GetNextSpillIndex(bool is_double) {
370 // Skip a slot if for a double-width slot. 370 // Skip a slot if for a double-width slot.
371 if (is_double) { 371 if (is_double) spill_slot_count_++;
372 spill_slot_count_ |= 1; // Make it odd, so incrementing makes it even.
373 spill_slot_count_++;
374 num_double_slots_++;
375 }
376 return spill_slot_count_++; 372 return spill_slot_count_++;
377 } 373 }
378 374
379 375
380 LOperand* LChunk::GetNextSpillSlot(bool is_double) { 376 LOperand* LChunk::GetNextSpillSlot(bool is_double) {
381 int index = GetNextSpillIndex(is_double); 377 int index = GetNextSpillIndex(is_double);
382 if (is_double) { 378 if (is_double) {
383 return LDoubleStackSlot::Create(index); 379 return LDoubleStackSlot::Create(index);
384 } else { 380 } else {
385 return LStackSlot::Create(index); 381 return LStackSlot::Create(index);
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2428 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2433 LOperand* object = UseRegister(instr->object()); 2429 LOperand* object = UseRegister(instr->object());
2434 LOperand* index = UseTempRegister(instr->index()); 2430 LOperand* index = UseTempRegister(instr->index());
2435 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2431 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2436 } 2432 }
2437 2433
2438 2434
2439 } } // namespace v8::internal 2435 } } // namespace v8::internal
2440 2436
2441 #endif // V8_TARGET_ARCH_IA32 2437 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698