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

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

Issue 2149493002: [turbofan] Introduce CheckedUint32Div and CheckUint32Mod operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment Created 4 years, 5 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 #define CHECKED_OP_LIST(V) \ 314 #define CHECKED_OP_LIST(V) \
315 V(CheckBounds, 2, 1) \ 315 V(CheckBounds, 2, 1) \
316 V(CheckIf, 1, 0) \ 316 V(CheckIf, 1, 0) \
317 V(CheckNumber, 1, 1) \ 317 V(CheckNumber, 1, 1) \
318 V(CheckTaggedPointer, 1, 1) \ 318 V(CheckTaggedPointer, 1, 1) \
319 V(CheckTaggedSigned, 1, 1) \ 319 V(CheckTaggedSigned, 1, 1) \
320 V(CheckedInt32Add, 2, 1) \ 320 V(CheckedInt32Add, 2, 1) \
321 V(CheckedInt32Sub, 2, 1) \ 321 V(CheckedInt32Sub, 2, 1) \
322 V(CheckedInt32Div, 2, 1) \ 322 V(CheckedInt32Div, 2, 1) \
323 V(CheckedInt32Mod, 2, 1) \ 323 V(CheckedInt32Mod, 2, 1) \
324 V(CheckedUint32Div, 2, 1) \
325 V(CheckedUint32Mod, 2, 1) \
324 V(CheckedUint32ToInt32, 1, 1) \ 326 V(CheckedUint32ToInt32, 1, 1) \
325 V(CheckedFloat64ToInt32, 1, 1) \ 327 V(CheckedFloat64ToInt32, 1, 1) \
326 V(CheckedTaggedToInt32, 1, 1) \ 328 V(CheckedTaggedToInt32, 1, 1) \
327 V(CheckedTaggedToFloat64, 1, 1) 329 V(CheckedTaggedToFloat64, 1, 1)
328 330
329 struct SimplifiedOperatorGlobalCache final { 331 struct SimplifiedOperatorGlobalCache final {
330 #define PURE(Name, properties, input_count) \ 332 #define PURE(Name, properties, input_count) \
331 struct Name##Operator final : public Operator { \ 333 struct Name##Operator final : public Operator { \
332 Name##Operator() \ 334 Name##Operator() \
333 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \ 335 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 Operator::kNoDeopt | Operator::kNoThrow | properties, \ 544 Operator::kNoDeopt | Operator::kNoThrow | properties, \
543 #Name, value_input_count, 1, control_input_count, \ 545 #Name, value_input_count, 1, control_input_count, \
544 output_count, 1, 0, access); \ 546 output_count, 1, 0, access); \
545 } 547 }
546 ACCESS_OP_LIST(ACCESS) 548 ACCESS_OP_LIST(ACCESS)
547 #undef ACCESS 549 #undef ACCESS
548 550
549 } // namespace compiler 551 } // namespace compiler
550 } // namespace internal 552 } // namespace internal
551 } // namespace v8 553 } // 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