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

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

Issue 2191503002: [turbofan] Add the CheckedTruncateTaggedToWord32 opcode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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-operator.h ('k') | src/compiler/verifier.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 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 V(StringLessThanOrEqual, Operator::kNoProperties, 2) 357 V(StringLessThanOrEqual, Operator::kNoProperties, 2)
358 358
359 #define SPECULATIVE_BINOP_LIST(V) \ 359 #define SPECULATIVE_BINOP_LIST(V) \
360 V(SpeculativeNumberAdd) \ 360 V(SpeculativeNumberAdd) \
361 V(SpeculativeNumberSubtract) \ 361 V(SpeculativeNumberSubtract) \
362 V(SpeculativeNumberDivide) \ 362 V(SpeculativeNumberDivide) \
363 V(SpeculativeNumberMultiply) \ 363 V(SpeculativeNumberMultiply) \
364 V(SpeculativeNumberModulus) \ 364 V(SpeculativeNumberModulus) \
365 V(SpeculativeNumberShiftLeft) 365 V(SpeculativeNumberShiftLeft)
366 366
367 #define CHECKED_OP_LIST(V) \ 367 #define CHECKED_OP_LIST(V) \
368 V(CheckBounds, 2, 1) \ 368 V(CheckBounds, 2, 1) \
369 V(CheckIf, 1, 0) \ 369 V(CheckIf, 1, 0) \
370 V(CheckNumber, 1, 1) \ 370 V(CheckNumber, 1, 1) \
371 V(CheckString, 1, 1) \ 371 V(CheckString, 1, 1) \
372 V(CheckTaggedPointer, 1, 1) \ 372 V(CheckTaggedPointer, 1, 1) \
373 V(CheckTaggedSigned, 1, 1) \ 373 V(CheckTaggedSigned, 1, 1) \
374 V(CheckedInt32Add, 2, 1) \ 374 V(CheckedInt32Add, 2, 1) \
375 V(CheckedInt32Sub, 2, 1) \ 375 V(CheckedInt32Sub, 2, 1) \
376 V(CheckedInt32Div, 2, 1) \ 376 V(CheckedInt32Div, 2, 1) \
377 V(CheckedInt32Mod, 2, 1) \ 377 V(CheckedInt32Mod, 2, 1) \
378 V(CheckedUint32Div, 2, 1) \ 378 V(CheckedUint32Div, 2, 1) \
379 V(CheckedUint32Mod, 2, 1) \ 379 V(CheckedUint32Mod, 2, 1) \
380 V(CheckedUint32ToInt32, 1, 1) \ 380 V(CheckedUint32ToInt32, 1, 1) \
381 V(CheckedFloat64ToInt32, 1, 1) \ 381 V(CheckedFloat64ToInt32, 1, 1) \
382 V(CheckedTaggedToInt32, 1, 1) \ 382 V(CheckedTaggedToInt32, 1, 1) \
383 V(CheckedTaggedToFloat64, 1, 1) 383 V(CheckedTaggedToFloat64, 1, 1) \
384 V(CheckedTruncateTaggedToWord32, 1, 1)
384 385
385 struct SimplifiedOperatorGlobalCache final { 386 struct SimplifiedOperatorGlobalCache final {
386 #define PURE(Name, properties, input_count) \ 387 #define PURE(Name, properties, input_count) \
387 struct Name##Operator final : public Operator { \ 388 struct Name##Operator final : public Operator { \
388 Name##Operator() \ 389 Name##Operator() \
389 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \ 390 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \
390 input_count, 0, 0, 1, 0, 0) {} \ 391 input_count, 0, 0, 1, 0, 0) {} \
391 }; \ 392 }; \
392 Name##Operator k##Name; 393 Name##Operator k##Name;
393 PURE_OP_LIST(PURE) 394 PURE_OP_LIST(PURE)
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 Operator::kNoDeopt | Operator::kNoThrow | properties, \ 635 Operator::kNoDeopt | Operator::kNoThrow | properties, \
635 #Name, value_input_count, 1, control_input_count, \ 636 #Name, value_input_count, 1, control_input_count, \
636 output_count, 1, 0, access); \ 637 output_count, 1, 0, access); \
637 } 638 }
638 ACCESS_OP_LIST(ACCESS) 639 ACCESS_OP_LIST(ACCESS)
639 #undef ACCESS 640 #undef ACCESS
640 641
641 } // namespace compiler 642 } // namespace compiler
642 } // namespace internal 643 } // namespace internal
643 } // namespace v8 644 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698