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

Side by Side Diff: src/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | 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_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 2490
2491 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) { 2491 LInstruction* LChunkBuilder::DoToFastProperties(HToFastProperties* instr) {
2492 LOperand* object = UseFixed(instr->value(), a0); 2492 LOperand* object = UseFixed(instr->value(), a0);
2493 LToFastProperties* result = new(zone()) LToFastProperties(object); 2493 LToFastProperties* result = new(zone()) LToFastProperties(object);
2494 return MarkAsCall(DefineFixed(result, v0), instr); 2494 return MarkAsCall(DefineFixed(result, v0), instr);
2495 } 2495 }
2496 2496
2497 2497
2498 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { 2498 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) {
2499 LOperand* context = UseFixed(instr->context(), cp); 2499 LOperand* context = UseFixed(instr->context(), cp);
2500 LTypeof* result = new(zone()) LTypeof(context, UseFixed(instr->value(), a0)); 2500 LOperand* value = UseFixed(instr->value(), a3);
2501 LTypeof* result = new (zone()) LTypeof(context, value);
2501 return MarkAsCall(DefineFixed(result, v0), instr); 2502 return MarkAsCall(DefineFixed(result, v0), instr);
2502 } 2503 }
2503 2504
2504 2505
2505 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { 2506 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) {
2506 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value())); 2507 return new(zone()) LTypeofIsAndBranch(UseTempRegister(instr->value()));
2507 } 2508 }
2508 2509
2509 2510
2510 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch( 2511 LInstruction* LChunkBuilder::DoIsConstructCallAndBranch(
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2614 LOperand* context = UseFixed(instr->context(), cp); 2615 LOperand* context = UseFixed(instr->context(), cp);
2615 LOperand* function = UseRegisterAtStart(instr->function()); 2616 LOperand* function = UseRegisterAtStart(instr->function());
2616 LAllocateBlockContext* result = 2617 LAllocateBlockContext* result =
2617 new(zone()) LAllocateBlockContext(context, function); 2618 new(zone()) LAllocateBlockContext(context, function);
2618 return MarkAsCall(DefineFixed(result, cp), instr); 2619 return MarkAsCall(DefineFixed(result, cp), instr);
2619 } 2620 }
2620 2621
2621 } } // namespace v8::internal 2622 } } // namespace v8::internal
2622 2623
2623 #endif // V8_TARGET_ARCH_MIPS 2624 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698