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

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

Issue 2671203003: [turbofan] Mark {JSCreate} as potentially throwing. (Closed)
Patch Set: Created 3 years, 10 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-inlining.cc ('k') | test/mjsunit/regress/regress-5638.js » ('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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 return OpParameter<CompareOperationHint>(op); 544 return OpParameter<CompareOperationHint>(op);
545 } 545 }
546 546
547 #define CACHED_OP_LIST(V) \ 547 #define CACHED_OP_LIST(V) \
548 V(ToInteger, Operator::kNoProperties, 1, 1) \ 548 V(ToInteger, Operator::kNoProperties, 1, 1) \
549 V(ToLength, Operator::kNoProperties, 1, 1) \ 549 V(ToLength, Operator::kNoProperties, 1, 1) \
550 V(ToName, Operator::kNoProperties, 1, 1) \ 550 V(ToName, Operator::kNoProperties, 1, 1) \
551 V(ToNumber, Operator::kNoProperties, 1, 1) \ 551 V(ToNumber, Operator::kNoProperties, 1, 1) \
552 V(ToObject, Operator::kFoldable, 1, 1) \ 552 V(ToObject, Operator::kFoldable, 1, 1) \
553 V(ToString, Operator::kNoProperties, 1, 1) \ 553 V(ToString, Operator::kNoProperties, 1, 1) \
554 V(Create, Operator::kEliminatable, 2, 1) \ 554 V(Create, Operator::kNoProperties, 2, 1) \
555 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \ 555 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \
556 V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \ 556 V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \
557 V(HasProperty, Operator::kNoProperties, 2, 1) \ 557 V(HasProperty, Operator::kNoProperties, 2, 1) \
558 V(ClassOf, Operator::kPure, 1, 1) \ 558 V(ClassOf, Operator::kPure, 1, 1) \
559 V(TypeOf, Operator::kPure, 1, 1) \ 559 V(TypeOf, Operator::kPure, 1, 1) \
560 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 560 V(InstanceOf, Operator::kNoProperties, 2, 1) \
561 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \ 561 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \
562 V(ForInNext, Operator::kNoProperties, 4, 1) \ 562 V(ForInNext, Operator::kNoProperties, 4, 1) \
563 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ 563 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
564 V(LoadMessage, Operator::kNoThrow | Operator::kNoWrite, 0, 1) \ 564 V(LoadMessage, Operator::kNoThrow | Operator::kNoWrite, 0, 1) \
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 1055 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
1056 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 1056 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
1057 "JSCreateScriptContext", // name 1057 "JSCreateScriptContext", // name
1058 1, 1, 1, 1, 1, 2, // counts 1058 1, 1, 1, 1, 1, 2, // counts
1059 scope_info); // parameter 1059 scope_info); // parameter
1060 } 1060 }
1061 1061
1062 } // namespace compiler 1062 } // namespace compiler
1063 } // namespace internal 1063 } // namespace internal
1064 } // namespace v8 1064 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | test/mjsunit/regress/regress-5638.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698