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

Side by Side Diff: src/hydrogen.h

Issue 19562003: Add support for IncrementCounter in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Using HConstant, HLoadKeyed, HAdd and HStoreKeyed. Created 7 years, 5 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
OLDNEW
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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 1118
1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context); 1119 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin, HValue* context);
1120 1120
1121 enum SoftDeoptimizeMode { 1121 enum SoftDeoptimizeMode {
1122 MUST_EMIT_SOFT_DEOPT, 1122 MUST_EMIT_SOFT_DEOPT,
1123 CAN_OMIT_SOFT_DEOPT 1123 CAN_OMIT_SOFT_DEOPT
1124 }; 1124 };
1125 1125
1126 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT); 1126 void AddSoftDeoptimize(SoftDeoptimizeMode mode = CAN_OMIT_SOFT_DEOPT);
1127 1127
1128 void AddIncrementCounter(StatsCounter* counter,
1129 HValue* context);
1130
1128 class IfBuilder { 1131 class IfBuilder {
1129 public: 1132 public:
1130 explicit IfBuilder(HGraphBuilder* builder, 1133 explicit IfBuilder(HGraphBuilder* builder,
1131 int position = RelocInfo::kNoPosition); 1134 int position = RelocInfo::kNoPosition);
1132 IfBuilder(HGraphBuilder* builder, 1135 IfBuilder(HGraphBuilder* builder,
1133 HIfContinuation* continuation); 1136 HIfContinuation* continuation);
1134 1137
1135 ~IfBuilder() { 1138 ~IfBuilder() {
1136 if (!finished_) End(); 1139 if (!finished_) End();
1137 } 1140 }
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 EmbeddedVector<char, 64> filename_; 2098 EmbeddedVector<char, 64> filename_;
2096 HeapStringAllocator string_allocator_; 2099 HeapStringAllocator string_allocator_;
2097 StringStream trace_; 2100 StringStream trace_;
2098 int indent_; 2101 int indent_;
2099 }; 2102 };
2100 2103
2101 2104
2102 } } // namespace v8::internal 2105 } } // namespace v8::internal
2103 2106
2104 #endif // V8_HYDROGEN_H_ 2107 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698