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

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: REBASE. 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/x64/lithium-codegen-x64.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 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 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 2575
2576 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { 2576 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2577 LOperand* object = UseFixed(instr->value(), rax); 2577 LOperand* object = UseFixed(instr->value(), rax);
2578 LToFastProperties* result = new(zone()) LToFastProperties(object); 2578 LToFastProperties* result = new(zone()) LToFastProperties(object);
2579 return MarkAsCall(DefineFixed(result, rax), instr); 2579 return MarkAsCall(DefineFixed(result, rax), instr);
2580 } 2580 }
2581 2581
2582 2582
2583 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2583 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2584 LOperand* context = UseFixed(instr->context(), rsi); 2584 LOperand* context = UseFixed(instr->context(), rsi);
2585 LOperand* value = UseAtStart(instr->value()); 2585 LOperand* value = UseFixed(instr->value(), rbx);
2586 LTypeof* result = new(zone()) LTypeof(context, value); 2586 LTypeof* result = new(zone()) LTypeof(context, value);
2587 return MarkAsCall(DefineFixed(result, rax), instr); 2587 return MarkAsCall(DefineFixed(result, rax), instr);
2588 } 2588 }
2589 2589
2590 2590
2591 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2591 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2592 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); 2592 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value()));
2593 } 2593 }
2594 2594
2595 2595
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2702 LOperand* function = UseRegisterAtStart(instr->function()); 2702 LOperand* function = UseRegisterAtStart(instr->function());
2703 LAllocateBlockContext* result = 2703 LAllocateBlockContext* result =
2704 new(zone()) LAllocateBlockContext(context, function); 2704 new(zone()) LAllocateBlockContext(context, function);
2705 return MarkAsCall(DefineFixed(result, rsi), instr); 2705 return MarkAsCall(DefineFixed(result, rsi), instr);
2706 } 2706 }
2707 2707
2708 2708
2709 } } // namespace v8::internal 2709 } } // namespace v8::internal
2710 2710
2711 #endif // V8_TARGET_ARCH_X64 2711 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698