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

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

Issue 9716028: Merge r11075 from bleeding_edge to 3.8 branch: Revert dynamic frame alignment. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.8/
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 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 LOperand* key = UseOrConstantAtStart(instr->key()); 2403 LOperand* key = UseOrConstantAtStart(instr->key());
2408 LOperand* object = UseOrConstantAtStart(instr->object()); 2404 LOperand* object = UseOrConstantAtStart(instr->object());
2409 LIn* result = new(zone()) LIn(context, key, object); 2405 LIn* result = new(zone()) LIn(context, key, object);
2410 return MarkAsCall(DefineFixed(result, eax), instr); 2406 return MarkAsCall(DefineFixed(result, eax), instr);
2411 } 2407 }
2412 2408
2413 2409
2414 } } // namespace v8::internal 2410 } } // namespace v8::internal
2415 2411
2416 #endif // V8_TARGET_ARCH_IA32 2412 #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