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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2365223003: Revert of [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecodes.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 break; 234 break;
235 case Token::Value::LTE: 235 case Token::Value::LTE:
236 Output(Bytecode::kTestLessThanOrEqual, RegisterOperand(reg), 236 Output(Bytecode::kTestLessThanOrEqual, RegisterOperand(reg),
237 UnsignedOperand(feedback_slot)); 237 UnsignedOperand(feedback_slot));
238 break; 238 break;
239 case Token::Value::GTE: 239 case Token::Value::GTE:
240 Output(Bytecode::kTestGreaterThanOrEqual, RegisterOperand(reg), 240 Output(Bytecode::kTestGreaterThanOrEqual, RegisterOperand(reg),
241 UnsignedOperand(feedback_slot)); 241 UnsignedOperand(feedback_slot));
242 break; 242 break;
243 case Token::Value::INSTANCEOF: 243 case Token::Value::INSTANCEOF:
244 Output(Bytecode::kTestInstanceOf, RegisterOperand(reg), 244 Output(Bytecode::kTestInstanceOf, RegisterOperand(reg));
245 UnsignedOperand(feedback_slot));
246 break; 245 break;
247 case Token::Value::IN: 246 case Token::Value::IN:
248 Output(Bytecode::kTestIn, RegisterOperand(reg)); 247 Output(Bytecode::kTestIn, RegisterOperand(reg));
249 break; 248 break;
250 default: 249 default:
251 UNREACHABLE(); 250 UNREACHABLE();
252 } 251 }
253 return *this; 252 return *this;
254 } 253 }
255 254
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 } 934 }
936 } 935 }
937 } 936 }
938 937
939 return true; 938 return true;
940 } 939 }
941 940
942 } // namespace interpreter 941 } // namespace interpreter
943 } // namespace internal 942 } // namespace internal
944 } // namespace v8 943 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698