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

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

Issue 997983004: [turbofan] Support lazy deopt for truncating store to a typed array. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 9 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/js-typed-lowering.cc ('k') | test/mjsunit/compiler/truncating-store-deopt.js » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Conversions 57 // Conversions
58 case IrOpcode::kJSToObject: 58 case IrOpcode::kJSToObject:
59 case IrOpcode::kJSToNumber: 59 case IrOpcode::kJSToNumber:
60 case IrOpcode::kJSToName: 60 case IrOpcode::kJSToName:
61 61
62 // Misc operations 62 // Misc operations
63 case IrOpcode::kJSStackCheck: 63 case IrOpcode::kJSStackCheck:
64 64
65 // Properties 65 // Properties
66 case IrOpcode::kJSLoadNamed: 66 case IrOpcode::kJSLoadNamed:
67 case IrOpcode::kJSStoreNamed:
67 case IrOpcode::kJSLoadProperty: 68 case IrOpcode::kJSLoadProperty:
68 case IrOpcode::kJSStoreNamed:
69 case IrOpcode::kJSStoreProperty:
70 case IrOpcode::kJSDeleteProperty: 69 case IrOpcode::kJSDeleteProperty:
71 return 1; 70 return 1;
72 71
72 // StoreProperty provides a second frame state just before
73 // the operation. This is used to lazy-deoptimize a to-number
74 // conversion for typed arrays.
75 case IrOpcode::kJSStoreProperty:
76 return 2;
77
73 // Binary operators that can deopt in the middle the operation (e.g., 78 // Binary operators that can deopt in the middle the operation (e.g.,
74 // as a result of lazy deopt in ToNumber conversion) need a second frame 79 // as a result of lazy deopt in ToNumber conversion) need a second frame
75 // state so that we can resume before the operation. 80 // state so that we can resume before the operation.
76 case IrOpcode::kJSMultiply: 81 case IrOpcode::kJSMultiply:
77 case IrOpcode::kJSAdd: 82 case IrOpcode::kJSAdd:
78 case IrOpcode::kJSBitwiseAnd: 83 case IrOpcode::kJSBitwiseAnd:
79 case IrOpcode::kJSBitwiseOr: 84 case IrOpcode::kJSBitwiseOr:
80 case IrOpcode::kJSBitwiseXor: 85 case IrOpcode::kJSBitwiseXor:
81 case IrOpcode::kJSDivide: 86 case IrOpcode::kJSDivide:
82 case IrOpcode::kJSModulus: 87 case IrOpcode::kJSModulus:
(...skipping 24 matching lines...) Expand all
107 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 112 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
108 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 113 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
109 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 114 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
110 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 115 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
111 opcode == IrOpcode::kIfDefault; 116 opcode == IrOpcode::kIfDefault;
112 } 117 }
113 118
114 } // namespace compiler 119 } // namespace compiler
115 } // namespace internal 120 } // namespace internal
116 } // namespace v8 121 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/mjsunit/compiler/truncating-store-deopt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698