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

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

Issue 1374683002: [turbofan] Make Strict(Not)Equal, TypeOf, ToBoolean, UnaryNot effectful. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove the no-write property from Strict(Not)Equal Created 5 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/compiler/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.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/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) { 448 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) {
449 DCHECK_EQ(IrOpcode::kJSCreateClosure, op->opcode()); 449 DCHECK_EQ(IrOpcode::kJSCreateClosure, op->opcode());
450 return OpParameter<CreateClosureParameters>(op); 450 return OpParameter<CreateClosureParameters>(op);
451 } 451 }
452 452
453 453
454 #define CACHED_OP_LIST(V) \ 454 #define CACHED_OP_LIST(V) \
455 V(Equal, Operator::kNoProperties, 2, 1) \ 455 V(Equal, Operator::kNoProperties, 2, 1) \
456 V(NotEqual, Operator::kNoProperties, 2, 1) \ 456 V(NotEqual, Operator::kNoProperties, 2, 1) \
457 V(StrictEqual, Operator::kPure, 2, 1) \ 457 V(StrictEqual, Operator::kNoThrow, 2, 1) \
458 V(StrictNotEqual, Operator::kPure, 2, 1) \ 458 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \
459 V(UnaryNot, Operator::kPure, 1, 1) \ 459 V(UnaryNot, Operator::kEliminatable, 1, 1) \
460 V(ToBoolean, Operator::kPure, 1, 1) \ 460 V(ToBoolean, Operator::kEliminatable, 1, 1) \
461 V(ToNumber, Operator::kNoProperties, 1, 1) \ 461 V(ToNumber, Operator::kNoProperties, 1, 1) \
462 V(ToString, Operator::kNoProperties, 1, 1) \ 462 V(ToString, Operator::kNoProperties, 1, 1) \
463 V(ToName, Operator::kNoProperties, 1, 1) \ 463 V(ToName, Operator::kNoProperties, 1, 1) \
464 V(ToObject, Operator::kNoProperties, 1, 1) \ 464 V(ToObject, Operator::kNoProperties, 1, 1) \
465 V(Yield, Operator::kNoProperties, 1, 1) \ 465 V(Yield, Operator::kNoProperties, 1, 1) \
466 V(Create, Operator::kEliminatable, 0, 1) \ 466 V(Create, Operator::kEliminatable, 0, 1) \
467 V(HasProperty, Operator::kNoProperties, 2, 1) \ 467 V(HasProperty, Operator::kNoProperties, 2, 1) \
468 V(TypeOf, Operator::kPure, 1, 1) \ 468 V(TypeOf, Operator::kEliminatable, 1, 1) \
469 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 469 V(InstanceOf, Operator::kNoProperties, 2, 1) \
470 V(ForInDone, Operator::kPure, 2, 1) \ 470 V(ForInDone, Operator::kPure, 2, 1) \
471 V(ForInNext, Operator::kNoProperties, 4, 1) \ 471 V(ForInNext, Operator::kNoProperties, 4, 1) \
472 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ 472 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
473 V(ForInStep, Operator::kPure, 1, 1) \ 473 V(ForInStep, Operator::kPure, 1, 1) \
474 V(StackCheck, Operator::kNoProperties, 0, 0) \ 474 V(StackCheck, Operator::kNoProperties, 0, 0) \
475 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ 475 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \
476 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ 476 V(CreateWithContext, Operator::kNoProperties, 2, 1) \
477 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ 477 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \
478 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ 478 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 Handle<String>::hash>( // -- 781 Handle<String>::hash>( // --
782 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 782 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
783 "JSCreateCatchContext", // name 783 "JSCreateCatchContext", // name
784 2, 1, 1, 1, 1, 2, // counts 784 2, 1, 1, 1, 1, 2, // counts
785 name); // parameter 785 name); // parameter
786 } 786 }
787 787
788 } // namespace compiler 788 } // namespace compiler
789 } // namespace internal 789 } // namespace internal
790 } // namespace v8 790 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698