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

Side by Side Diff: src/x64/lithium-codegen-x64.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/unique.h ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "x64/lithium-codegen-x64.h" 9 #include "x64/lithium-codegen-x64.h"
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 5007 matching lines...) Expand 10 before | Expand all | Expand 10 after
5018 LOperand* input = instr->value(); 5018 LOperand* input = instr->value();
5019 ASSERT(input->IsRegister()); 5019 ASSERT(input->IsRegister());
5020 Register reg = ToRegister(input); 5020 Register reg = ToRegister(input);
5021 5021
5022 DeferredCheckMaps* deferred = NULL; 5022 DeferredCheckMaps* deferred = NULL;
5023 if (instr->hydrogen()->has_migration_target()) { 5023 if (instr->hydrogen()->has_migration_target()) {
5024 deferred = new(zone()) DeferredCheckMaps(this, instr, reg); 5024 deferred = new(zone()) DeferredCheckMaps(this, instr, reg);
5025 __ bind(deferred->check_maps()); 5025 __ bind(deferred->check_maps());
5026 } 5026 }
5027 5027
5028 const UniqueSet<Map>* map_set = instr->hydrogen()->map_set(); 5028 const UniqueSet<Map>* maps = instr->hydrogen()->maps();
5029 Label success; 5029 Label success;
5030 for (int i = 0; i < map_set->size() - 1; i++) { 5030 for (int i = 0; i < maps->size() - 1; i++) {
5031 Handle<Map> map = map_set->at(i).handle(); 5031 Handle<Map> map = maps->at(i).handle();
5032 __ CompareMap(reg, map); 5032 __ CompareMap(reg, map);
5033 __ j(equal, &success, Label::kNear); 5033 __ j(equal, &success, Label::kNear);
5034 } 5034 }
5035 5035
5036 Handle<Map> map = map_set->at(map_set->size() - 1).handle(); 5036 Handle<Map> map = maps->at(maps->size() - 1).handle();
5037 __ CompareMap(reg, map); 5037 __ CompareMap(reg, map);
5038 if (instr->hydrogen()->has_migration_target()) { 5038 if (instr->hydrogen()->has_migration_target()) {
5039 __ j(not_equal, deferred->entry()); 5039 __ j(not_equal, deferred->entry());
5040 } else { 5040 } else {
5041 DeoptimizeIf(not_equal, instr->environment()); 5041 DeoptimizeIf(not_equal, instr->environment());
5042 } 5042 }
5043 5043
5044 __ bind(&success); 5044 __ bind(&success);
5045 } 5045 }
5046 5046
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 __ bind(deferred->exit()); 5698 __ bind(deferred->exit());
5699 __ bind(&done); 5699 __ bind(&done);
5700 } 5700 }
5701 5701
5702 5702
5703 #undef __ 5703 #undef __
5704 5704
5705 } } // namespace v8::internal 5705 } } // namespace v8::internal
5706 5706
5707 #endif // V8_TARGET_ARCH_X64 5707 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/unique.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698