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

Side by Side Diff: src/hydrogen.cc

Issue 146013002: Fix HGraphBuilder::AddSimulate to pass removable down correctly (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | 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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 Add<HStoreNamedField>(reference, HObjectAccess::ForCounter(), 1201 Add<HStoreNamedField>(reference, HObjectAccess::ForCounter(),
1202 new_value); 1202 new_value);
1203 } 1203 }
1204 } 1204 }
1205 1205
1206 1206
1207 void HGraphBuilder::AddSimulate(BailoutId id, 1207 void HGraphBuilder::AddSimulate(BailoutId id,
1208 RemovableSimulate removable) { 1208 RemovableSimulate removable) {
1209 ASSERT(current_block() != NULL); 1209 ASSERT(current_block() != NULL);
1210 ASSERT(!graph()->IsInsideNoSideEffectsScope()); 1210 ASSERT(!graph()->IsInsideNoSideEffectsScope());
1211 current_block()->AddNewSimulate(id, removable); 1211 current_block()->AddNewSimulate(id, position_, removable);
1212 } 1212 }
1213 1213
1214 1214
1215 HBasicBlock* HGraphBuilder::CreateBasicBlock(HEnvironment* env) { 1215 HBasicBlock* HGraphBuilder::CreateBasicBlock(HEnvironment* env) {
1216 HBasicBlock* b = graph()->CreateBasicBlock(); 1216 HBasicBlock* b = graph()->CreateBasicBlock();
1217 b->SetInitialEnvironment(env); 1217 b->SetInitialEnvironment(env);
1218 return b; 1218 return b;
1219 } 1219 }
1220 1220
1221 1221
(...skipping 9824 matching lines...) Expand 10 before | Expand all | Expand 10 after
11046 if (ShouldProduceTraceOutput()) { 11046 if (ShouldProduceTraceOutput()) {
11047 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11047 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11048 } 11048 }
11049 11049
11050 #ifdef DEBUG 11050 #ifdef DEBUG
11051 graph_->Verify(false); // No full verify. 11051 graph_->Verify(false); // No full verify.
11052 #endif 11052 #endif
11053 } 11053 }
11054 11054
11055 } } // namespace v8::internal 11055 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698