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

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

Issue 244383002: Fix field type handling in load elimination. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 6 years, 8 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/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5034 matching lines...) Expand 10 before | Expand all | Expand 10 after
5045 LOperand* input = instr->value(); 5045 LOperand* input = instr->value();
5046 ASSERT(input->IsRegister()); 5046 ASSERT(input->IsRegister());
5047 Register reg = ToRegister(input); 5047 Register reg = ToRegister(input);
5048 5048
5049 DeferredCheckMaps* deferred = NULL; 5049 DeferredCheckMaps* deferred = NULL;
5050 if (instr->hydrogen()->has_migration_target()) { 5050 if (instr->hydrogen()->has_migration_target()) {
5051 deferred = new(zone()) DeferredCheckMaps(this, instr, reg); 5051 deferred = new(zone()) DeferredCheckMaps(this, instr, reg);
5052 __ bind(deferred->check_maps()); 5052 __ bind(deferred->check_maps());
5053 } 5053 }
5054 5054
5055 UniqueSet<Map> map_set = instr->hydrogen()->map_set(); 5055 const UniqueSet<Map>* map_set = instr->hydrogen()->map_set();
5056 Label success; 5056 Label success;
5057 for (int i = 0; i < map_set.size() - 1; i++) { 5057 for (int i = 0; i < map_set->size() - 1; i++) {
5058 Handle<Map> map = map_set.at(i).handle(); 5058 Handle<Map> map = map_set->at(i).handle();
5059 __ CompareMap(reg, map); 5059 __ CompareMap(reg, map);
5060 __ j(equal, &success, Label::kNear); 5060 __ j(equal, &success, Label::kNear);
5061 } 5061 }
5062 5062
5063 Handle<Map> map = map_set.at(map_set.size() - 1).handle(); 5063 Handle<Map> map = map_set->at(map_set->size() - 1).handle();
5064 __ CompareMap(reg, map); 5064 __ CompareMap(reg, map);
5065 if (instr->hydrogen()->has_migration_target()) { 5065 if (instr->hydrogen()->has_migration_target()) {
5066 __ j(not_equal, deferred->entry()); 5066 __ j(not_equal, deferred->entry());
5067 } else { 5067 } else {
5068 DeoptimizeIf(not_equal, instr->environment()); 5068 DeoptimizeIf(not_equal, instr->environment());
5069 } 5069 }
5070 5070
5071 __ bind(&success); 5071 __ bind(&success);
5072 } 5072 }
5073 5073
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 __ bind(deferred->exit()); 5724 __ bind(deferred->exit());
5725 __ bind(&done); 5725 __ bind(&done);
5726 } 5726 }
5727 5727
5728 5728
5729 #undef __ 5729 #undef __
5730 5730
5731 } } // namespace v8::internal 5731 } } // namespace v8::internal
5732 5732
5733 #endif // V8_TARGET_ARCH_X64 5733 #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