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

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

Issue 1114563003: Optimize the typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips/mips64 errors. 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
OLDNEW
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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2566 2566
2567 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { 2567 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2568 LOperand* object = UseFixed(instr->value(), rax); 2568 LOperand* object = UseFixed(instr->value(), rax);
2569 LToFastProperties* result = new(zone()) LToFastProperties(object); 2569 LToFastProperties* result = new(zone()) LToFastProperties(object);
2570 return MarkAsCall(DefineFixed(result, rax), instr); 2570 return MarkAsCall(DefineFixed(result, rax), instr);
2571 } 2571 }
2572 2572
2573 2573
2574 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2574 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2575 LOperand* context = UseFixed(instr->context(), rsi); 2575 LOperand* context = UseFixed(instr->context(), rsi);
2576 LOperand* value = UseAtStart(instr->value()); 2576 LOperand* value = UseFixed(instr->value(), rbx);
2577 LTypeof* result = new(zone()) LTypeof(context, value); 2577 LTypeof* result = new(zone()) LTypeof(context, value);
2578 return MarkAsCall(DefineFixed(result, rax), instr); 2578 return MarkAsCall(DefineFixed(result, rax), instr);
2579 } 2579 }
2580 2580
2581 2581
2582 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2582 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2583 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); 2583 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value()));
2584 } 2584 }
2585 2585
2586 2586
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 LOperand* function = UseRegisterAtStart(instr->function()); 2693 LOperand* function = UseRegisterAtStart(instr->function());
2694 LAllocateBlockContext* result = 2694 LAllocateBlockContext* result =
2695 new(zone()) LAllocateBlockContext(context, function); 2695 new(zone()) LAllocateBlockContext(context, function);
2696 return MarkAsCall(DefineFixed(result, rsi), instr); 2696 return MarkAsCall(DefineFixed(result, rsi), instr);
2697 } 2697 }
2698 2698
2699 2699
2700 } } // namespace v8::internal 2700 } } // namespace v8::internal
2701 2701
2702 #endif // V8_TARGET_ARCH_X64 2702 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/compiler/js-generic-lowering.cc ('K') | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698