OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2386 | 2386 |
2387 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 2387 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
2388 info()->MarkAsRequiresFrame(); | 2388 info()->MarkAsRequiresFrame(); |
2389 LOperand* args = UseRegister(instr->arguments()); | 2389 LOperand* args = UseRegister(instr->arguments()); |
2390 LOperand* length = UseRegisterOrConstantAtStart(instr->length()); | 2390 LOperand* length = UseRegisterOrConstantAtStart(instr->length()); |
2391 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 2391 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
2392 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); | 2392 return DefineAsRegister(new(zone()) LAccessArgumentsAt(args, length, index)); |
2393 } | 2393 } |
2394 | 2394 |
2395 | 2395 |
2396 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { | |
2397 LOperand* object = UseFixed(instr->value(), a0); | |
2398 LToFastProperties* result = new(zone()) LToFastProperties(object); | |
2399 return MarkAsCall(DefineFixed(result, v0), instr); | |
2400 } | |
2401 | |
2402 | |
2403 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2396 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
2404 LOperand* context = UseFixed(instr->context(), cp); | 2397 LOperand* context = UseFixed(instr->context(), cp); |
2405 LOperand* value = UseFixed(instr->value(), a3); | 2398 LOperand* value = UseFixed(instr->value(), a3); |
2406 LTypeof* result = new (zone()) LTypeof(context, value); | 2399 LTypeof* result = new (zone()) LTypeof(context, value); |
2407 return MarkAsCall(DefineFixed(result, v0), instr); | 2400 return MarkAsCall(DefineFixed(result, v0), instr); |
2408 } | 2401 } |
2409 | 2402 |
2410 | 2403 |
2411 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2404 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
2412 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); | 2405 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2505 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2498 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
2506 LOperand* context = UseRegisterAtStart(instr->context()); | 2499 LOperand* context = UseRegisterAtStart(instr->context()); |
2507 return new(zone()) LStoreFrameContext(context); | 2500 return new(zone()) LStoreFrameContext(context); |
2508 } | 2501 } |
2509 | 2502 |
2510 | 2503 |
2511 } // namespace internal | 2504 } // namespace internal |
2512 } // namespace v8 | 2505 } // namespace v8 |
2513 | 2506 |
2514 #endif // V8_TARGET_ARCH_MIPS64 | 2507 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |