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

Side by Side Diff: src/hydrogen-instructions.h

Issue 9365057: Relax TransitionElementsKind DependsOn/Changes dependencies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove redundant code Created 8 years, 10 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.cc ('k') | test/mjsunit/elements-transition-hoisting.js » ('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 // 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 4173 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 4184
4185 class HTransitionElementsKind: public HTemplateInstruction<1> { 4185 class HTransitionElementsKind: public HTemplateInstruction<1> {
4186 public: 4186 public:
4187 HTransitionElementsKind(HValue* object, 4187 HTransitionElementsKind(HValue* object,
4188 Handle<Map> original_map, 4188 Handle<Map> original_map,
4189 Handle<Map> transitioned_map) 4189 Handle<Map> transitioned_map)
4190 : original_map_(original_map), 4190 : original_map_(original_map),
4191 transitioned_map_(transitioned_map) { 4191 transitioned_map_(transitioned_map) {
4192 SetOperandAt(0, object); 4192 SetOperandAt(0, object);
4193 SetFlag(kUseGVN); 4193 SetFlag(kUseGVN);
4194 SetGVNFlag(kDependsOnMaps);
4195 SetGVNFlag(kChangesElementsKind); 4194 SetGVNFlag(kChangesElementsKind);
4196 if (original_map->has_fast_double_elements()) { 4195 SetGVNFlag(kChangesElementsPointer);
4197 SetGVNFlag(kChangesElementsPointer);
4198 SetGVNFlag(kDependsOnElementsPointer);
4199 SetGVNFlag(kDependsOnDoubleArrayElements);
4200 } else if (transitioned_map->has_fast_double_elements()) {
4201 SetGVNFlag(kChangesElementsPointer);
4202 SetGVNFlag(kDependsOnElementsPointer);
4203 SetGVNFlag(kDependsOnArrayElements);
4204 }
4205 set_representation(Representation::Tagged()); 4196 set_representation(Representation::Tagged());
4206 } 4197 }
4207 4198
4208 virtual Representation RequiredInputRepresentation(int index) { 4199 virtual Representation RequiredInputRepresentation(int index) {
4209 return Representation::Tagged(); 4200 return Representation::Tagged();
4210 } 4201 }
4211 4202
4212 HValue* object() { return OperandAt(0); } 4203 HValue* object() { return OperandAt(0); }
4213 Handle<Map> original_map() { return original_map_; } 4204 Handle<Map> original_map() { return original_map_; }
4214 Handle<Map> transitioned_map() { return transitioned_map_; } 4205 Handle<Map> transitioned_map() { return transitioned_map_; }
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
4625 4616
4626 DECLARE_CONCRETE_INSTRUCTION(In) 4617 DECLARE_CONCRETE_INSTRUCTION(In)
4627 }; 4618 };
4628 4619
4629 #undef DECLARE_INSTRUCTION 4620 #undef DECLARE_INSTRUCTION
4630 #undef DECLARE_CONCRETE_INSTRUCTION 4621 #undef DECLARE_CONCRETE_INSTRUCTION
4631 4622
4632 } } // namespace v8::internal 4623 } } // namespace v8::internal
4633 4624
4634 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4625 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | test/mjsunit/elements-transition-hoisting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698