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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 264693011: Various cleanups in check elimination. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-load-elimination.cc ('k') | src/mips/lithium-codegen-mips.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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "ia32/lithium-codegen-ia32.h" 9 #include "ia32/lithium-codegen-ia32.h"
10 #include "ic.h" 10 #include "ic.h"
(...skipping 5588 matching lines...) Expand 10 before | Expand all | Expand 10 after
5599 LOperand* input = instr->value(); 5599 LOperand* input = instr->value();
5600 ASSERT(input->IsRegister()); 5600 ASSERT(input->IsRegister());
5601 Register reg = ToRegister(input); 5601 Register reg = ToRegister(input);
5602 5602
5603 DeferredCheckMaps* deferred = NULL; 5603 DeferredCheckMaps* deferred = NULL;
5604 if (instr->hydrogen()->has_migration_target()) { 5604 if (instr->hydrogen()->has_migration_target()) {
5605 deferred = new(zone()) DeferredCheckMaps(this, instr, reg, x87_stack_); 5605 deferred = new(zone()) DeferredCheckMaps(this, instr, reg, x87_stack_);
5606 __ bind(deferred->check_maps()); 5606 __ bind(deferred->check_maps());
5607 } 5607 }
5608 5608
5609 const UniqueSet<Map>* map_set = instr->hydrogen()->map_set(); 5609 const UniqueSet<Map>* maps = instr->hydrogen()->maps();
5610 Label success; 5610 Label success;
5611 for (int i = 0; i < map_set->size() - 1; i++) { 5611 for (int i = 0; i < maps->size() - 1; i++) {
5612 Handle<Map> map = map_set->at(i).handle(); 5612 Handle<Map> map = maps->at(i).handle();
5613 __ CompareMap(reg, map); 5613 __ CompareMap(reg, map);
5614 __ j(equal, &success, Label::kNear); 5614 __ j(equal, &success, Label::kNear);
5615 } 5615 }
5616 5616
5617 Handle<Map> map = map_set->at(map_set->size() - 1).handle(); 5617 Handle<Map> map = maps->at(maps->size() - 1).handle();
5618 __ CompareMap(reg, map); 5618 __ CompareMap(reg, map);
5619 if (instr->hydrogen()->has_migration_target()) { 5619 if (instr->hydrogen()->has_migration_target()) {
5620 __ j(not_equal, deferred->entry()); 5620 __ j(not_equal, deferred->entry());
5621 } else { 5621 } else {
5622 DeoptimizeIf(not_equal, instr->environment()); 5622 DeoptimizeIf(not_equal, instr->environment());
5623 } 5623 }
5624 5624
5625 __ bind(&success); 5625 __ bind(&success);
5626 } 5626 }
5627 5627
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
6418 __ bind(deferred->exit()); 6418 __ bind(deferred->exit());
6419 __ bind(&done); 6419 __ bind(&done);
6420 } 6420 }
6421 6421
6422 6422
6423 #undef __ 6423 #undef __
6424 6424
6425 } } // namespace v8::internal 6425 } } // namespace v8::internal
6426 6426
6427 #endif // V8_TARGET_ARCH_IA32 6427 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-load-elimination.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698