OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 void L##type::CompileToNative(LCodeGen* generator) { \ | 38 void L##type::CompileToNative(LCodeGen* generator) { \ |
39 generator->Do##type(this); \ | 39 generator->Do##type(this); \ |
40 } | 40 } |
41 LITHIUM_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) | 41 LITHIUM_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) |
42 #undef DEFINE_COMPILE | 42 #undef DEFINE_COMPILE |
43 | 43 |
44 LOsrEntry::LOsrEntry() { | 44 LOsrEntry::LOsrEntry() { |
45 for (int i = 0; i < Register::kNumAllocatableRegisters; ++i) { | 45 for (int i = 0; i < Register::kNumAllocatableRegisters; ++i) { |
46 register_spills_[i] = NULL; | 46 register_spills_[i] = NULL; |
47 } | 47 } |
48 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; ++i) { | 48 for (int i = 0; i < DoubleRegister::NumAllocatableRegisters(); ++i) { |
49 double_register_spills_[i] = NULL; | 49 double_register_spills_[i] = NULL; |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 void LOsrEntry::MarkSpilledRegister(int allocation_index, | 54 void LOsrEntry::MarkSpilledRegister(int allocation_index, |
55 LOperand* spill_operand) { | 55 LOperand* spill_operand) { |
56 ASSERT(spill_operand->IsStackSlot()); | 56 ASSERT(spill_operand->IsStackSlot()); |
57 ASSERT(register_spills_[allocation_index] == NULL); | 57 ASSERT(register_spills_[allocation_index] == NULL); |
58 register_spills_[allocation_index] = spill_operand; | 58 register_spills_[allocation_index] = spill_operand; |
(...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 | 2355 |
2356 | 2356 |
2357 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2357 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2358 LOperand* object = UseRegister(instr->object()); | 2358 LOperand* object = UseRegister(instr->object()); |
2359 LOperand* index = UseRegister(instr->index()); | 2359 LOperand* index = UseRegister(instr->index()); |
2360 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2360 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2361 } | 2361 } |
2362 | 2362 |
2363 | 2363 |
2364 } } // namespace v8::internal | 2364 } } // namespace v8::internal |
OLD | NEW |