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

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

Issue 18014003: Add X32 port into V8 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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
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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 stream->Add(" length "); 340 stream->Add(" length ");
341 length()->PrintTo(stream); 341 length()->PrintTo(stream);
342 342
343 stream->Add(" index "); 343 stream->Add(" index ");
344 index()->PrintTo(stream); 344 index()->PrintTo(stream);
345 } 345 }
346 346
347 347
348 int LPlatformChunk::GetNextSpillIndex(bool is_double) { 348 int LPlatformChunk::GetNextSpillIndex(bool is_double) {
349 #ifdef V8_TARGET_ARCH_X32
350 // Skip a slot if for a double-width slot.
351 // TODO(haitao): Support aligned spilled doubles.
352 if (is_double) {
353 spill_slot_count_++;
354 spill_slot_count_ |= 1;
355 }
356 #endif
349 return spill_slot_count_++; 357 return spill_slot_count_++;
350 } 358 }
351 359
352 360
353 LOperand* LPlatformChunk::GetNextSpillSlot(bool is_double) { 361 LOperand* LPlatformChunk::GetNextSpillSlot(bool is_double) {
354 // All stack slots are Double stack slots on x64. 362 // All stack slots are Double stack slots on x64.
355 // Alternatively, at some point, start using half-size 363 // Alternatively, at some point, start using half-size
356 // stack slots for int32 values. 364 // stack slots for int32 values.
357 int index = GetNextSpillIndex(is_double); 365 int index = GetNextSpillIndex(is_double);
358 if (is_double) { 366 if (is_double) {
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2575 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2568 LOperand* object = UseRegister(instr->object()); 2576 LOperand* object = UseRegister(instr->object());
2569 LOperand* index = UseTempRegister(instr->index()); 2577 LOperand* index = UseTempRegister(instr->index());
2570 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2578 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2571 } 2579 }
2572 2580
2573 2581
2574 } } // namespace v8::internal 2582 } } // namespace v8::internal
2575 2583
2576 #endif // V8_TARGET_ARCH_X64 2584 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698