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

Side by Side Diff: src/code-stub-assembler.h

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: rebase and git cl format 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 Node* IsSymbol(Node* object); 648 Node* IsSymbol(Node* object);
649 Node* IsPrivateSymbol(Node* object); 649 Node* IsPrivateSymbol(Node* object);
650 Node* IsJSValue(Node* object); 650 Node* IsJSValue(Node* object);
651 Node* IsJSArray(Node* object); 651 Node* IsJSArray(Node* object);
652 Node* IsNativeContext(Node* object); 652 Node* IsNativeContext(Node* object);
653 Node* IsWeakCell(Node* object); 653 Node* IsWeakCell(Node* object);
654 Node* IsFixedDoubleArray(Node* object); 654 Node* IsFixedDoubleArray(Node* object);
655 Node* IsHashTable(Node* object); 655 Node* IsHashTable(Node* object);
656 Node* IsDictionary(Node* object); 656 Node* IsDictionary(Node* object);
657 Node* IsUnseededNumberDictionary(Node* object); 657 Node* IsUnseededNumberDictionary(Node* object);
658 Node* IsConstructorMap(Node* map);
659 Node* IsJSFunction(Node* object);
658 660
659 // ElementsKind helpers: 661 // ElementsKind helpers:
660 Node* IsFastElementsKind(Node* elements_kind); 662 Node* IsFastElementsKind(Node* elements_kind);
661 Node* IsHoleyFastElementsKind(Node* elements_kind); 663 Node* IsHoleyFastElementsKind(Node* elements_kind);
662 664
663 // String helpers. 665 // String helpers.
664 // Load a character from a String (might flatten a ConsString). 666 // Load a character from a String (might flatten a ConsString).
665 Node* StringCharCodeAt(Node* string, Node* smi_index); 667 Node* StringCharCodeAt(Node* string, Node* smi_index);
666 // Return the single character string with only {code}. 668 // Return the single character string with only {code}.
667 Node* StringFromCharCode(Node* code); 669 Node* StringFromCharCode(Node* code);
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 // instructions, e.g. Branch(SameValue(...), &label). 1070 // instructions, e.g. Branch(SameValue(...), &label).
1069 Node* SameValue(Node* lhs, Node* rhs, Node* context); 1071 Node* SameValue(Node* lhs, Node* rhs, Node* context);
1070 1072
1071 Node* HasProperty( 1073 Node* HasProperty(
1072 Node* object, Node* key, Node* context, 1074 Node* object, Node* key, Node* context,
1073 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); 1075 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty);
1074 Node* ForInFilter(Node* key, Node* object, Node* context); 1076 Node* ForInFilter(Node* key, Node* object, Node* context);
1075 1077
1076 Node* Typeof(Node* value, Node* context); 1078 Node* Typeof(Node* value, Node* context);
1077 1079
1080 Node* GetSuperConstructor(Node* value, Node* context);
1081
1078 Node* InstanceOf(Node* object, Node* callable, Node* context); 1082 Node* InstanceOf(Node* object, Node* callable, Node* context);
1079 1083
1080 // Debug helpers 1084 // Debug helpers
1081 Node* IsDebugActive(); 1085 Node* IsDebugActive();
1082 1086
1083 // TypedArray/ArrayBuffer helpers 1087 // TypedArray/ArrayBuffer helpers
1084 Node* IsDetachedBuffer(Node* buffer); 1088 Node* IsDetachedBuffer(Node* buffer);
1085 1089
1086 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, 1090 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind,
1087 ParameterMode mode, int base_size = 0); 1091 ParameterMode mode, int base_size = 0);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 } 1207 }
1204 #else 1208 #else
1205 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1209 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1206 #endif 1210 #endif
1207 1211
1208 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1212 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1209 1213
1210 } // namespace internal 1214 } // namespace internal
1211 } // namespace v8 1215 } // namespace v8
1212 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1216 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« src/builtins/builtins.h ('K') | « src/code-factory.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698