| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/crankshaft/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
| 10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
| (...skipping 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2388 | 2388 |
| 2389 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 2389 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
| 2390 info()->MarkAsRequiresFrame(); | 2390 info()->MarkAsRequiresFrame(); |
| 2391 LOperand* args = UseRegister(instr->arguments()); | 2391 LOperand* args = UseRegister(instr->arguments()); |
| 2392 LOperand* length = UseRegisterOrConstantAtStart(instr->length()); | 2392 LOperand* length = UseRegisterOrConstantAtStart(instr->length()); |
| 2393 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 2393 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
| 2394 return DefineAsRegister(new (zone()) LAccessArgumentsAt(args, length, index)); | 2394 return DefineAsRegister(new (zone()) LAccessArgumentsAt(args, length, index)); |
| 2395 } | 2395 } |
| 2396 | 2396 |
| 2397 | 2397 |
| 2398 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | |
| 2399 LOperand* object = UseFixed(instr->value(), r3); | |
| 2400 LToFastProperties* result = new (zone()) LToFastProperties(object); | |
| 2401 return MarkAsCall(DefineFixed(result, r3), instr); | |
| 2402 } | |
| 2403 | |
| 2404 | |
| 2405 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2398 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
| 2406 LOperand* context = UseFixed(instr->context(), cp); | 2399 LOperand* context = UseFixed(instr->context(), cp); |
| 2407 LOperand* value = UseFixed(instr->value(), r6); | 2400 LOperand* value = UseFixed(instr->value(), r6); |
| 2408 LTypeof* result = new (zone()) LTypeof(context, value); | 2401 LTypeof* result = new (zone()) LTypeof(context, value); |
| 2409 return MarkAsCall(DefineFixed(result, r3), instr); | 2402 return MarkAsCall(DefineFixed(result, r3), instr); |
| 2410 } | 2403 } |
| 2411 | 2404 |
| 2412 | 2405 |
| 2413 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2406 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
| 2414 return new (zone()) LTypeofIsAndBranch(UseRegister(instr->value())); | 2407 return new (zone()) LTypeofIsAndBranch(UseRegister(instr->value())); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2503 } | 2496 } |
| 2504 | 2497 |
| 2505 | 2498 |
| 2506 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2499 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2507 LOperand* context = UseRegisterAtStart(instr->context()); | 2500 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2508 return new (zone()) LStoreFrameContext(context); | 2501 return new (zone()) LStoreFrameContext(context); |
| 2509 } | 2502 } |
| 2510 | 2503 |
| 2511 } // namespace internal | 2504 } // namespace internal |
| 2512 } // namespace v8 | 2505 } // namespace v8 |
| OLD | NEW |