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

Side by Side Diff: src/hydrogen.cc

Issue 182923002: Merged r19535 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 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 | « no previous file | 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 ? graph()->GetConstant0()
9900 : Add<HConstant>(value);
9901 // Ensure that value is stored as smi.
9902 access = access.WithRepresentation(representation);
9899 } else { 9903 } else {
9900 value_instruction = Add<HConstant>(value); 9904 value_instruction = Add<HConstant>(value);
9901 } 9905 }
9902 9906
9903 Add<HStoreNamedField>(object, access, value_instruction); 9907 Add<HStoreNamedField>(object, access, value_instruction);
9904 } 9908 }
9905 } 9909 }
9906 9910
9907 int inobject_properties = boilerplate_object->map()->inobject_properties(); 9911 int inobject_properties = boilerplate_object->map()->inobject_properties();
9908 HInstruction* value_instruction = 9912 HInstruction* value_instruction =
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
11238 if (ShouldProduceTraceOutput()) { 11242 if (ShouldProduceTraceOutput()) {
11239 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11243 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11240 } 11244 }
11241 11245
11242 #ifdef DEBUG 11246 #ifdef DEBUG
11243 graph_->Verify(false); // No full verify. 11247 graph_->Verify(false); // No full verify.
11244 #endif 11248 #endif
11245 } 11249 }
11246 11250
11247 } } // namespace v8::internal 11251 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698