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

Side by Side Diff: src/hydrogen.cc

Issue 180743009: Merged r19535, r19549, r19584 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 9 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/deoptimizer.cc ('k') | src/version.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 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 9876 matching lines...) Expand 10 before | Expand all | Expand 10 after
9887 // 1) it's a child object of another object with a valid allocation site 9887 // 1) it's a child object of another object with a valid allocation site
9888 // 2) we can just use the mode of the parent object for pretenuring 9888 // 2) we can just use the mode of the parent object for pretenuring
9889 HInstruction* double_box = 9889 HInstruction* double_box =
9890 Add<HAllocate>(heap_number_constant, HType::HeapNumber(), 9890 Add<HAllocate>(heap_number_constant, HType::HeapNumber(),
9891 pretenure_flag, HEAP_NUMBER_TYPE); 9891 pretenure_flag, HEAP_NUMBER_TYPE);
9892 AddStoreMapConstant(double_box, 9892 AddStoreMapConstant(double_box,
9893 isolate()->factory()->heap_number_map()); 9893 isolate()->factory()->heap_number_map());
9894 Add<HStoreNamedField>(double_box, HObjectAccess::ForHeapNumberValue(), 9894 Add<HStoreNamedField>(double_box, HObjectAccess::ForHeapNumberValue(),
9895 Add<HConstant>(value)); 9895 Add<HConstant>(value));
9896 value_instruction = double_box; 9896 value_instruction = double_box;
9897 } else if (representation.IsSmi() && value->IsUninitialized()) { 9897 } else if (representation.IsSmi()) {
9898 value_instruction = graph()->GetConstant0(); 9898 value_instruction = value->IsUninitialized()
9899 // Ensure that Constant0 is stored as smi. 9899 ? graph()->GetConstant0()
9900 : Add<HConstant>(value);
9901 // Ensure that value is stored as smi.
9900 access = access.WithRepresentation(representation); 9902 access = access.WithRepresentation(representation);
9901 } else { 9903 } else {
9902 value_instruction = Add<HConstant>(value); 9904 value_instruction = Add<HConstant>(value);
9903 } 9905 }
9904 9906
9905 Add<HStoreNamedField>(object, access, value_instruction); 9907 Add<HStoreNamedField>(object, access, value_instruction);
9906 } 9908 }
9907 } 9909 }
9908 9910
9909 int inobject_properties = boilerplate_object->map()->inobject_properties(); 9911 int inobject_properties = boilerplate_object->map()->inobject_properties();
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
11240 if (ShouldProduceTraceOutput()) { 11242 if (ShouldProduceTraceOutput()) {
11241 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11243 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11242 } 11244 }
11243 11245
11244 #ifdef DEBUG 11246 #ifdef DEBUG
11245 graph_->Verify(false); // No full verify. 11247 graph_->Verify(false); // No full verify.
11246 #endif 11248 #endif
11247 } 11249 }
11248 11250
11249 } } // namespace v8::internal 11251 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698