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 25 matching lines...) Expand all Loading... |
36 namespace v8 { | 36 namespace v8 { |
37 namespace internal { | 37 namespace internal { |
38 | 38 |
39 #define DEFINE_COMPILE(type) \ | 39 #define DEFINE_COMPILE(type) \ |
40 void L##type::CompileToNative(LCodeGen* generator) { \ | 40 void L##type::CompileToNative(LCodeGen* generator) { \ |
41 generator->Do##type(this); \ | 41 generator->Do##type(this); \ |
42 } | 42 } |
43 LITHIUM_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) | 43 LITHIUM_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) |
44 #undef DEFINE_COMPILE | 44 #undef DEFINE_COMPILE |
45 | 45 |
| 46 |
46 LOsrEntry::LOsrEntry() { | 47 LOsrEntry::LOsrEntry() { |
47 for (int i = 0; i < Register::kNumAllocatableRegisters; ++i) { | 48 for (int i = 0; i < Register::kNumAllocatableRegisters; ++i) { |
48 register_spills_[i] = NULL; | 49 register_spills_[i] = NULL; |
49 } | 50 } |
50 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) { | 51 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) { |
51 double_register_spills_[i] = NULL; | 52 double_register_spills_[i] = NULL; |
52 } | 53 } |
53 } | 54 } |
54 | 55 |
55 | 56 |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | 443 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
443 object()->PrintTo(stream); | 444 object()->PrintTo(stream); |
444 stream->Add("["); | 445 stream->Add("["); |
445 key()->PrintTo(stream); | 446 key()->PrintTo(stream); |
446 stream->Add("] <- "); | 447 stream->Add("] <- "); |
447 value()->PrintTo(stream); | 448 value()->PrintTo(stream); |
448 } | 449 } |
449 | 450 |
450 | 451 |
451 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { | 452 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { |
452 LGap* gap = new LGap(block); | 453 LInstructionGap* gap = new LInstructionGap(block); |
453 int index = -1; | 454 int index = -1; |
454 if (instr->IsControl()) { | 455 if (instr->IsControl()) { |
455 instructions_.Add(gap); | 456 instructions_.Add(gap); |
456 index = instructions_.length(); | 457 index = instructions_.length(); |
457 instructions_.Add(instr); | 458 instructions_.Add(instr); |
458 } else { | 459 } else { |
459 index = instructions_.length(); | 460 index = instructions_.length(); |
460 instructions_.Add(instr); | 461 instructions_.Add(instr); |
461 instructions_.Add(gap); | 462 instructions_.Add(gap); |
462 } | 463 } |
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2201 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2202 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2202 HEnvironment* outer = current_block_->last_environment()->outer(); | 2203 HEnvironment* outer = current_block_->last_environment()->outer(); |
2203 current_block_->UpdateEnvironment(outer); | 2204 current_block_->UpdateEnvironment(outer); |
2204 return NULL; | 2205 return NULL; |
2205 } | 2206 } |
2206 | 2207 |
2207 | 2208 |
2208 } } // namespace v8::internal | 2209 } } // namespace v8::internal |
2209 | 2210 |
2210 #endif // V8_TARGET_ARCH_IA32 | 2211 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |