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

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

Issue 2073683002: [turbofan] The Check and Checked operators don't produce control. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/simplified-lowering.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/simplified-operator.h" 5 #include "src/compiler/simplified-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 #include "src/types.h" 10 #include "src/types.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 input_count, 0, 0, 1, 0, 0) {} \ 296 input_count, 0, 0, 1, 0, 0) {} \
297 }; \ 297 }; \
298 Name##Operator k##Name; 298 Name##Operator k##Name;
299 PURE_OP_LIST(PURE) 299 PURE_OP_LIST(PURE)
300 #undef PURE 300 #undef PURE
301 301
302 #define CHECKED(Name) \ 302 #define CHECKED(Name) \
303 struct Name##Operator final : public Operator { \ 303 struct Name##Operator final : public Operator { \
304 Name##Operator() \ 304 Name##Operator() \
305 : Operator(IrOpcode::k##Name, Operator::kNoThrow, #Name, 1, 1, 1, 1, \ 305 : Operator(IrOpcode::k##Name, Operator::kNoThrow, #Name, 1, 1, 1, 1, \
306 1, 1) {} \ 306 1, 0) {} \
307 }; \ 307 }; \
308 Name##Operator k##Name; 308 Name##Operator k##Name;
309 CHECKED_OP_LIST(CHECKED) 309 CHECKED_OP_LIST(CHECKED)
310 #undef CHECKED 310 #undef CHECKED
311 311
312 template <CheckFloat64HoleMode kMode> 312 template <CheckFloat64HoleMode kMode>
313 struct CheckFloat64HoleNaNOperatortor final 313 struct CheckFloat64HoleNaNOperatortor final
314 : public Operator1<CheckFloat64HoleMode> { 314 : public Operator1<CheckFloat64HoleMode> {
315 CheckFloat64HoleNaNOperatortor() 315 CheckFloat64HoleNaNOperatortor()
316 : Operator1<CheckFloat64HoleMode>( 316 : Operator1<CheckFloat64HoleMode>(
(...skipping 13 matching lines...) Expand all
330 1, 1, 1, 1, 1, 0, kMode) {} 330 1, 1, 1, 1, 1, 0, kMode) {}
331 }; 331 };
332 CheckTaggedHoleOperator<CheckTaggedHoleMode::kConvertHoleToUndefined> 332 CheckTaggedHoleOperator<CheckTaggedHoleMode::kConvertHoleToUndefined>
333 kCheckTaggedHoleConvertHoleToUndefinedOperator; 333 kCheckTaggedHoleConvertHoleToUndefinedOperator;
334 CheckTaggedHoleOperator<CheckTaggedHoleMode::kNeverReturnHole> 334 CheckTaggedHoleOperator<CheckTaggedHoleMode::kNeverReturnHole>
335 kCheckTaggedHoleNeverReturnHoleOperator; 335 kCheckTaggedHoleNeverReturnHoleOperator;
336 336
337 struct CheckIfOperator final : public Operator { 337 struct CheckIfOperator final : public Operator {
338 CheckIfOperator() 338 CheckIfOperator()
339 : Operator(IrOpcode::kCheckIf, Operator::kFoldable, "CheckIf", 1, 1, 1, 339 : Operator(IrOpcode::kCheckIf, Operator::kFoldable, "CheckIf", 1, 1, 1,
340 0, 1, 1) {} 340 0, 1, 0) {}
341 }; 341 };
342 CheckIfOperator kCheckIf; 342 CheckIfOperator kCheckIf;
343 343
344 template <PretenureFlag kPretenure> 344 template <PretenureFlag kPretenure>
345 struct AllocateOperator final : public Operator1<PretenureFlag> { 345 struct AllocateOperator final : public Operator1<PretenureFlag> {
346 AllocateOperator() 346 AllocateOperator()
347 : Operator1<PretenureFlag>(IrOpcode::kAllocate, Operator::kNoThrow, 347 : Operator1<PretenureFlag>(IrOpcode::kAllocate, Operator::kNoThrow,
348 "Allocate", 1, 1, 1, 1, 1, 0, kPretenure) {} 348 "Allocate", 1, 1, 1, 1, 1, 0, kPretenure) {}
349 }; 349 };
350 AllocateOperator<NOT_TENURED> kAllocateNotTenuredOperator; 350 AllocateOperator<NOT_TENURED> kAllocateNotTenuredOperator;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 Operator1<Type>(IrOpcode::k##Name, Operator::kNoThrow | properties, \ 511 Operator1<Type>(IrOpcode::k##Name, Operator::kNoThrow | properties, \
512 #Name, value_input_count, 1, control_input_count, \ 512 #Name, value_input_count, 1, control_input_count, \
513 output_count, 1, 0, access); \ 513 output_count, 1, 0, access); \
514 } 514 }
515 ACCESS_OP_LIST(ACCESS) 515 ACCESS_OP_LIST(ACCESS)
516 #undef ACCESS 516 #undef ACCESS
517 517
518 } // namespace compiler 518 } // namespace compiler
519 } // namespace internal 519 } // namespace internal
520 } // namespace v8 520 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698