OLD | NEW |
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 6236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6247 HObjectAccess::ForHeapNumberValue(), value, Representation::Double()); | 6247 HObjectAccess::ForHeapNumberValue(), value, Representation::Double()); |
6248 } | 6248 } |
6249 } else { | 6249 } else { |
6250 // This is a non-double store. | 6250 // This is a non-double store. |
6251 instr = new(zone()) HStoreNamedField( | 6251 instr = new(zone()) HStoreNamedField( |
6252 object, field_access, value, representation); | 6252 object, field_access, value, representation); |
6253 } | 6253 } |
6254 | 6254 |
6255 if (transition_to_field) { | 6255 if (transition_to_field) { |
6256 Handle<Map> transition(lookup->GetTransitionMapFromMap(*map)); | 6256 Handle<Map> transition(lookup->GetTransitionMapFromMap(*map)); |
6257 instr->set_transition(transition); | 6257 instr->SetTransition(transition, top_info()); |
6258 // TODO(fschneider): Record the new map type of the object in the IR to | 6258 // TODO(fschneider): Record the new map type of the object in the IR to |
6259 // enable elimination of redundant checks after the transition store. | 6259 // enable elimination of redundant checks after the transition store. |
6260 instr->SetGVNFlag(kChangesMaps); | 6260 instr->SetGVNFlag(kChangesMaps); |
6261 } | 6261 } |
6262 return instr; | 6262 return instr; |
6263 } | 6263 } |
6264 | 6264 |
6265 | 6265 |
6266 HInstruction* HOptimizedGraphBuilder::BuildStoreNamedGeneric( | 6266 HInstruction* HOptimizedGraphBuilder::BuildStoreNamedGeneric( |
6267 HValue* object, | 6267 HValue* object, |
(...skipping 5333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11601 } | 11601 } |
11602 } | 11602 } |
11603 | 11603 |
11604 #ifdef DEBUG | 11604 #ifdef DEBUG |
11605 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 11605 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
11606 if (allocator_ != NULL) allocator_->Verify(); | 11606 if (allocator_ != NULL) allocator_->Verify(); |
11607 #endif | 11607 #endif |
11608 } | 11608 } |
11609 | 11609 |
11610 } } // namespace v8::internal | 11610 } } // namespace v8::internal |
OLD | NEW |