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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: Fix assembler and add unittest Created 4 years 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 V(HasProperty, Operator::kNoProperties, 2, 1) \ 449 V(HasProperty, Operator::kNoProperties, 2, 1) \
450 V(TypeOf, Operator::kPure, 1, 1) \ 450 V(TypeOf, Operator::kPure, 1, 1) \
451 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 451 V(InstanceOf, Operator::kNoProperties, 2, 1) \
452 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \ 452 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \
453 V(ForInNext, Operator::kNoProperties, 4, 1) \ 453 V(ForInNext, Operator::kNoProperties, 4, 1) \
454 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ 454 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
455 V(LoadMessage, Operator::kNoThrow, 0, 1) \ 455 V(LoadMessage, Operator::kNoThrow, 0, 1) \
456 V(StoreMessage, Operator::kNoThrow, 1, 0) \ 456 V(StoreMessage, Operator::kNoThrow, 1, 0) \
457 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \ 457 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \
458 V(StackCheck, Operator::kNoWrite, 0, 0) \ 458 V(StackCheck, Operator::kNoWrite, 0, 0) \
459 V(GetSuperConstructor, Operator::kNoWrite, 1, 1) \
459 V(StoreDataPropertyInLiteral, Operator::kNoProperties, 5, 0) 460 V(StoreDataPropertyInLiteral, Operator::kNoProperties, 5, 0)
460 461
461 #define BINARY_OP_LIST(V) \ 462 #define BINARY_OP_LIST(V) \
462 V(BitwiseOr) \ 463 V(BitwiseOr) \
463 V(BitwiseXor) \ 464 V(BitwiseXor) \
464 V(BitwiseAnd) \ 465 V(BitwiseAnd) \
465 V(ShiftLeft) \ 466 V(ShiftLeft) \
466 V(ShiftRight) \ 467 V(ShiftRight) \
467 V(ShiftRightLogical) \ 468 V(ShiftRightLogical) \
468 V(Add) \ 469 V(Add) \
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 901 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
901 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 902 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
902 "JSCreateScriptContext", // name 903 "JSCreateScriptContext", // name
903 1, 1, 1, 1, 1, 2, // counts 904 1, 1, 1, 1, 1, 2, // counts
904 scpope_info); // parameter 905 scpope_info); // parameter
905 } 906 }
906 907
907 } // namespace compiler 908 } // namespace compiler
908 } // namespace internal 909 } // namespace internal
909 } // namespace v8 910 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698