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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: Convert GetSuperConstructor to a new interpreter bytecode Created 4 years, 1 month 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
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 V(Create, Operator::kEliminatable, 2, 1) \ 446 V(Create, Operator::kEliminatable, 2, 1) \
447 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \ 447 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \
448 V(HasProperty, Operator::kNoProperties, 2, 1) \ 448 V(HasProperty, Operator::kNoProperties, 2, 1) \
449 V(TypeOf, Operator::kPure, 1, 1) \ 449 V(TypeOf, Operator::kPure, 1, 1) \
450 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 450 V(InstanceOf, Operator::kNoProperties, 2, 1) \
451 V(ForInNext, Operator::kNoProperties, 4, 1) \ 451 V(ForInNext, Operator::kNoProperties, 4, 1) \
452 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ 452 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
453 V(LoadMessage, Operator::kNoThrow, 0, 1) \ 453 V(LoadMessage, Operator::kNoThrow, 0, 1) \
454 V(StoreMessage, Operator::kNoThrow, 1, 0) \ 454 V(StoreMessage, Operator::kNoThrow, 1, 0) \
455 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \ 455 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \
456 V(StackCheck, Operator::kNoWrite, 0, 0) 456 V(StackCheck, Operator::kNoWrite, 0, 0) \
457 V(GetSuperConstructor, Operator::kNoProperties, 1, 1)
Benedikt Meurer 2016/11/23 04:51:00 This should be marked as Operator::kNoWrite.
Henrique Ferreiro 2016/12/01 12:22:22 Would you mind explaining what would be the differ
Benedikt Meurer 2016/12/01 13:11:51 ToName can call into arbitrary JavaScript (via ToP
457 458
458 #define BINARY_OP_LIST(V) \ 459 #define BINARY_OP_LIST(V) \
459 V(BitwiseOr) \ 460 V(BitwiseOr) \
460 V(BitwiseXor) \ 461 V(BitwiseXor) \
461 V(BitwiseAnd) \ 462 V(BitwiseAnd) \
462 V(ShiftLeft) \ 463 V(ShiftLeft) \
463 V(ShiftRight) \ 464 V(ShiftRight) \
464 V(ShiftRightLogical) \ 465 V(ShiftRightLogical) \
465 V(Add) \ 466 V(Add) \
466 V(Subtract) \ 467 V(Subtract) \
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 878 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
878 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 879 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
879 "JSCreateScriptContext", // name 880 "JSCreateScriptContext", // name
880 1, 1, 1, 1, 1, 2, // counts 881 1, 1, 1, 1, 1, 2, // counts
881 scpope_info); // parameter 882 scpope_info); // parameter
882 } 883 }
883 884
884 } // namespace compiler 885 } // namespace compiler
885 } // namespace internal 886 } // namespace internal
886 } // namespace v8 887 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698