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

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

Issue 2862213002: [turbofan] Optimized support for CreateGeneratorObject. (Closed)
Patch Set: Add control input. Created 3 years, 7 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
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.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 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/operator-properties.h" 5 #include "src/compiler/operator-properties.h"
6 6
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 10
(...skipping 16 matching lines...) Expand all
27 return true; 27 return true;
28 case IrOpcode::kJSCallRuntime: { 28 case IrOpcode::kJSCallRuntime: {
29 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); 29 const CallRuntimeParameters& p = CallRuntimeParametersOf(op);
30 return Linkage::NeedsFrameStateInput(p.id()); 30 return Linkage::NeedsFrameStateInput(p.id());
31 } 31 }
32 32
33 // Strict equality cannot lazily deoptimize. 33 // Strict equality cannot lazily deoptimize.
34 case IrOpcode::kJSStrictEqual: 34 case IrOpcode::kJSStrictEqual:
35 return false; 35 return false;
36 36
37 // Generator creation cannot call back into arbitrary JavaScript.
38 case IrOpcode::kJSCreateGeneratorObject:
39 return false;
40
37 // Binary operations 41 // Binary operations
38 case IrOpcode::kJSAdd: 42 case IrOpcode::kJSAdd:
39 case IrOpcode::kJSSubtract: 43 case IrOpcode::kJSSubtract:
40 case IrOpcode::kJSMultiply: 44 case IrOpcode::kJSMultiply:
41 case IrOpcode::kJSDivide: 45 case IrOpcode::kJSDivide:
42 case IrOpcode::kJSModulus: 46 case IrOpcode::kJSModulus:
43 47
44 // Bitwise operations 48 // Bitwise operations
45 case IrOpcode::kJSBitwiseOr: 49 case IrOpcode::kJSBitwiseOr:
46 case IrOpcode::kJSBitwiseXor: 50 case IrOpcode::kJSBitwiseXor:
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 131 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
128 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 132 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
129 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 133 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
130 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 134 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
131 opcode == IrOpcode::kIfDefault; 135 opcode == IrOpcode::kIfDefault;
132 } 136 }
133 137
134 } // namespace compiler 138 } // namespace compiler
135 } // namespace internal 139 } // namespace internal
136 } // namespace v8 140 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698