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

Side by Side Diff: src/compiler/common-operator.cc

Issue 595863002: Adding more missing deoptimization points in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 2 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/compiler/common-operator.h ('k') | src/compiler/instruction.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/unique.h" 10 #include "src/unique.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 }; 240 };
241 return new (zone()) CallOperator(descriptor, "Call"); 241 return new (zone()) CallOperator(descriptor, "Call");
242 } 242 }
243 243
244 244
245 const Operator* CommonOperatorBuilder::Projection(size_t index) { 245 const Operator* CommonOperatorBuilder::Projection(size_t index) {
246 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, 246 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure,
247 1, 1, "Projection", index); 247 1, 1, "Projection", index);
248 } 248 }
249 249
250
251 OutputFrameStateCombine::OutputFrameStateCombine(CombineKind kind,
252 size_t parameter)
253 : kind_(kind), parameter_(parameter) {}
254
255 // static
256 OutputFrameStateCombine OutputFrameStateCombine::Ignore() {
257 return OutputFrameStateCombine(kPushOutput, 0);
258 }
259
260
261 // static
262 OutputFrameStateCombine OutputFrameStateCombine::Push(size_t count) {
263 return OutputFrameStateCombine(kPushOutput, count);
264 }
265
266
267 // static
268 OutputFrameStateCombine OutputFrameStateCombine::PokeAt(size_t index) {
269 return OutputFrameStateCombine(kPokeAt, index);
270 }
271
272
273 OutputFrameStateCombine::CombineKind OutputFrameStateCombine::kind() {
274 return kind_;
275 }
276
277
278 size_t OutputFrameStateCombine::GetPushCount() {
279 DCHECK(kind() == kPushOutput);
280 return parameter_;
281 }
282
283
284 size_t OutputFrameStateCombine::GetOffsetToPokeAt() {
285 DCHECK(kind() == kPokeAt);
286 return parameter_;
287 }
288
289
290 bool OutputFrameStateCombine::IsOutputIgnored() {
291 return kind() == kPushOutput && GetPushCount() == 0;
292 }
293
250 } // namespace compiler 294 } // namespace compiler
251 } // namespace internal 295 } // namespace internal
252 } // namespace v8 296 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698