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

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

Issue 1205473004: [turbofan] Make global variable loads and stores explicit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 case IrOpcode::kJSStackCheck: 64 case IrOpcode::kJSStackCheck:
65 case IrOpcode::kJSDeleteProperty: 65 case IrOpcode::kJSDeleteProperty:
66 return 1; 66 return 1;
67 67
68 // We record the frame state immediately before and immediately after 68 // We record the frame state immediately before and immediately after
69 // every property or global variable access. 69 // every property or global variable access.
70 case IrOpcode::kJSLoadNamed: 70 case IrOpcode::kJSLoadNamed:
71 case IrOpcode::kJSStoreNamed: 71 case IrOpcode::kJSStoreNamed:
72 case IrOpcode::kJSLoadProperty: 72 case IrOpcode::kJSLoadProperty:
73 case IrOpcode::kJSStoreProperty: 73 case IrOpcode::kJSStoreProperty:
74 case IrOpcode::kJSLoadGlobal:
75 case IrOpcode::kJSStoreGlobal:
74 case IrOpcode::kJSLoadDynamicGlobal: 76 case IrOpcode::kJSLoadDynamicGlobal:
75 return 2; 77 return 2;
76 78
77 // Binary operators that can deopt in the middle the operation (e.g., 79 // Binary operators that can deopt in the middle the operation (e.g.,
78 // as a result of lazy deopt in ToNumber conversion) need a second frame 80 // as a result of lazy deopt in ToNumber conversion) need a second frame
79 // state so that we can resume before the operation. 81 // state so that we can resume before the operation.
80 case IrOpcode::kJSMultiply: 82 case IrOpcode::kJSMultiply:
81 case IrOpcode::kJSAdd: 83 case IrOpcode::kJSAdd:
82 case IrOpcode::kJSBitwiseAnd: 84 case IrOpcode::kJSBitwiseAnd:
83 case IrOpcode::kJSBitwiseOr: 85 case IrOpcode::kJSBitwiseOr:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 122 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 123 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 124 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 125 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
124 opcode == IrOpcode::kIfDefault; 126 opcode == IrOpcode::kIfDefault;
125 } 127 }
126 128
127 } // namespace compiler 129 } // namespace compiler
128 } // namespace internal 130 } // namespace internal
129 } // namespace v8 131 } // 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