Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: src/ppc/lithium-ppc.cc

Issue 1124243002: PPC: Optimize the typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after
2493 2493
2494 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { 2494 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2495 LOperand* object = UseFixed(instr->value(), r3); 2495 LOperand* object = UseFixed(instr->value(), r3);
2496 LToFastProperties* result = new (zone()) LToFastProperties(object); 2496 LToFastProperties* result = new (zone()) LToFastProperties(object);
2497 return MarkAsCall(DefineFixed(result, r3), instr); 2497 return MarkAsCall(DefineFixed(result, r3), instr);
2498 } 2498 }
2499 2499
2500 2500
2501 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2501 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2502 LOperand* context = UseFixed(instr->context(), cp); 2502 LOperand* context = UseFixed(instr->context(), cp);
2503 LTypeof* result = new (zone()) LTypeof(context, UseFixed(instr->value(), r3)); 2503 LOperand* value = UseFixed(instr->value(), r6);
2504 LTypeof* result = new (zone()) LTypeof(context, value);
2504 return MarkAsCall(DefineFixed(result, r3), instr); 2505 return MarkAsCall(DefineFixed(result, r3), instr);
2505 } 2506 }
2506 2507
2507 2508
2508 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2509 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2509 return new (zone()) LTypeofIsAndBranch(UseRegister(instr->value())); 2510 return new (zone()) LTypeofIsAndBranch(UseRegister(instr->value()));
2510 } 2511 }
2511 2512
2512 2513
2513 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( 2514 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch(
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2614 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2614 HAllocateBlockContext* instr) { 2615 HAllocateBlockContext* instr) {
2615 LOperand* context = UseFixed(instr->context(), cp); 2616 LOperand* context = UseFixed(instr->context(), cp);
2616 LOperand* function = UseRegisterAtStart(instr->function()); 2617 LOperand* function = UseRegisterAtStart(instr->function());
2617 LAllocateBlockContext* result = 2618 LAllocateBlockContext* result =
2618 new (zone()) LAllocateBlockContext(context, function); 2619 new (zone()) LAllocateBlockContext(context, function);
2619 return MarkAsCall(DefineFixed(result, cp), instr); 2620 return MarkAsCall(DefineFixed(result, cp), instr);
2620 } 2621 }
2621 } 2622 }
2622 } // namespace v8::internal 2623 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698