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

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

Issue 1160983004: [turbofan] First step towards sanitizing for-in and making it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add some comments. Created 5 years, 6 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Context operations 51 // Context operations
52 case IrOpcode::kJSCreateScriptContext: 52 case IrOpcode::kJSCreateScriptContext:
53 case IrOpcode::kJSCreateWithContext: 53 case IrOpcode::kJSCreateWithContext:
54 54
55 // Conversions 55 // Conversions
56 case IrOpcode::kJSToObject: 56 case IrOpcode::kJSToObject:
57 case IrOpcode::kJSToNumber: 57 case IrOpcode::kJSToNumber:
58 case IrOpcode::kJSToName: 58 case IrOpcode::kJSToName:
59 59
60 // Misc operations 60 // Misc operations
61 case IrOpcode::kJSForInNext:
62 case IrOpcode::kJSForInPrepare:
61 case IrOpcode::kJSStackCheck: 63 case IrOpcode::kJSStackCheck:
62 case IrOpcode::kJSDeleteProperty: 64 case IrOpcode::kJSDeleteProperty:
63 return 1; 65 return 1;
64 66
65 // We record the frame state immediately before and immediately after 67 // We record the frame state immediately before and immediately after
66 // every property access. 68 // every property access.
67 case IrOpcode::kJSLoadNamed: 69 case IrOpcode::kJSLoadNamed:
68 case IrOpcode::kJSStoreNamed: 70 case IrOpcode::kJSStoreNamed:
69 case IrOpcode::kJSLoadProperty: 71 case IrOpcode::kJSLoadProperty:
70 case IrOpcode::kJSStoreProperty: 72 case IrOpcode::kJSStoreProperty:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 118 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
117 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 119 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
118 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 120 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
119 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 121 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
120 opcode == IrOpcode::kIfDefault; 122 opcode == IrOpcode::kIfDefault;
121 } 123 }
122 124
123 } // namespace compiler 125 } // namespace compiler
124 } // namespace internal 126 } // namespace internal
125 } // namespace v8 127 } // 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