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

Side by Side Diff: src/hydrogen.cc

Issue 23622033: Remove unused context parameter from AddIncrementCounter(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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.h ('k') | 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 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 HInstruction* HGraphBuilder::AddInstruction(HInstruction* instr) { 1025 HInstruction* HGraphBuilder::AddInstruction(HInstruction* instr) {
1026 ASSERT(current_block() != NULL); 1026 ASSERT(current_block() != NULL);
1027 current_block()->AddInstruction(instr); 1027 current_block()->AddInstruction(instr);
1028 if (graph()->IsInsideNoSideEffectsScope()) { 1028 if (graph()->IsInsideNoSideEffectsScope()) {
1029 instr->SetFlag(HValue::kHasNoObservableSideEffects); 1029 instr->SetFlag(HValue::kHasNoObservableSideEffects);
1030 } 1030 }
1031 return instr; 1031 return instr;
1032 } 1032 }
1033 1033
1034 1034
1035 void HGraphBuilder::AddIncrementCounter(StatsCounter* counter, 1035 void HGraphBuilder::AddIncrementCounter(StatsCounter* counter) {
1036 HValue* context) {
1037 if (FLAG_native_code_counters && counter->Enabled()) { 1036 if (FLAG_native_code_counters && counter->Enabled()) {
1038 HValue* reference = Add<HConstant>(ExternalReference(counter)); 1037 HValue* reference = Add<HConstant>(ExternalReference(counter));
1039 HValue* old_value = Add<HLoadNamedField>(reference, 1038 HValue* old_value = Add<HLoadNamedField>(reference,
1040 HObjectAccess::ForCounter()); 1039 HObjectAccess::ForCounter());
1041 HValue* new_value = Add<HAdd>(old_value, graph()->GetConstant1()); 1040 HValue* new_value = Add<HAdd>(old_value, graph()->GetConstant1());
1042 new_value->ClearFlag(HValue::kCanOverflow); // Ignore counter overflow 1041 new_value->ClearFlag(HValue::kCanOverflow); // Ignore counter overflow
1043 Add<HStoreNamedField>(reference, HObjectAccess::ForCounter(), 1042 Add<HStoreNamedField>(reference, HObjectAccess::ForCounter(),
1044 new_value); 1043 new_value);
1045 } 1044 }
1046 } 1045 }
(...skipping 8658 matching lines...) Expand 10 before | Expand all | Expand 10 after
9705 if (ShouldProduceTraceOutput()) { 9704 if (ShouldProduceTraceOutput()) {
9706 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 9705 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
9707 } 9706 }
9708 9707
9709 #ifdef DEBUG 9708 #ifdef DEBUG
9710 graph_->Verify(false); // No full verify. 9709 graph_->Verify(false); // No full verify.
9711 #endif 9710 #endif
9712 } 9711 }
9713 9712
9714 } } // namespace v8::internal 9713 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698