| OLD | NEW |
| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 } | 304 } |
| 305 | 305 |
| 306 | 306 |
| 307 int LChunk::GetNextSpillIndex(bool is_double) { | 307 int LChunk::GetNextSpillIndex(bool is_double) { |
| 308 // Skip a slot if for a double-width slot. | 308 // Skip a slot if for a double-width slot. |
| 309 if (is_double) spill_slot_count_++; | 309 if (is_double) spill_slot_count_++; |
| 310 return spill_slot_count_++; | 310 return spill_slot_count_++; |
| 311 } | 311 } |
| 312 | 312 |
| 313 | 313 |
| 314 LOperand* LChunk::GetNextSpillSlot(bool is_double) { | 314 LOperand* LChunk::GetNextSpillSlot(bool is_double) { |
| 315 int index = GetNextSpillIndex(is_double); | 315 int index = GetNextSpillIndex(is_double); |
| 316 if (is_double) { | 316 if (is_double) { |
| 317 return LDoubleStackSlot::Create(index); | 317 return LDoubleStackSlot::Create(index); |
| 318 } else { | 318 } else { |
| 319 return LStackSlot::Create(index); | 319 return LStackSlot::Create(index); |
| 320 } | 320 } |
| 321 } | 321 } |
| 322 | 322 |
| 323 | 323 |
| 324 void LChunk::MarkEmptyBlocks() { | 324 void LChunk::MarkEmptyBlocks() { |
| (...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1873 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1874 HEnvironment* outer = current_block_->last_environment()->outer(); | 1874 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1875 current_block_->UpdateEnvironment(outer); | 1875 current_block_->UpdateEnvironment(outer); |
| 1876 return NULL; | 1876 return NULL; |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 | 1879 |
| 1880 } } // namespace v8::internal | 1880 } } // namespace v8::internal |
| 1881 | 1881 |
| 1882 #endif // V8_TARGET_ARCH_IA32 | 1882 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |