OLD | NEW |
---|---|
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 #include "src/builtins/builtins.h" | 5 #include "src/builtins/builtins.h" |
6 #include "src/builtins/builtins-utils.h" | 6 #include "src/builtins/builtins-utils.h" |
7 | 7 |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/property-descriptor.h" | 9 #include "src/property-descriptor.h" |
10 | 10 |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1011 void Builtins::Generate_InstanceOf(CodeStubAssembler* assembler) { | 1011 void Builtins::Generate_InstanceOf(CodeStubAssembler* assembler) { |
1012 typedef compiler::Node Node; | 1012 typedef compiler::Node Node; |
1013 typedef CompareDescriptor Descriptor; | 1013 typedef CompareDescriptor Descriptor; |
1014 Node* object = assembler->Parameter(Descriptor::kLeft); | 1014 Node* object = assembler->Parameter(Descriptor::kLeft); |
1015 Node* callable = assembler->Parameter(Descriptor::kRight); | 1015 Node* callable = assembler->Parameter(Descriptor::kRight); |
1016 Node* context = assembler->Parameter(Descriptor::kContext); | 1016 Node* context = assembler->Parameter(Descriptor::kContext); |
1017 | 1017 |
1018 assembler->Return(assembler->InstanceOf(object, callable, context)); | 1018 assembler->Return(assembler->InstanceOf(object, callable, context)); |
1019 } | 1019 } |
1020 | 1020 |
1021 void Builtins::Generate_GetSuperConstructor(CodeStubAssembler* assembler) { | |
caitp
2016/11/22 23:42:03
It looks like this should take a compiler::CodeAss
Benedikt Meurer
2016/11/23 04:51:00
Jep, you'll probably hit this once you rebase.
| |
1022 typedef compiler::Node Node; | |
1023 typedef TypeofDescriptor Descriptor; | |
1024 | |
1025 Node* object = assembler->Parameter(Descriptor::kObject); | |
caitp
2016/11/22 23:30:34
if `object` is an Smi, GetSuperConstructor() will
Henrique Ferreiro
2016/12/01 12:22:22
Shouldn't I check that in CodeStubAssembler::GetSu
Benedikt Meurer
2016/12/01 13:11:51
Yep.
| |
1026 Node* context = assembler->Parameter(Descriptor::kContext); | |
1027 | |
1028 assembler->Return(assembler->GetSuperConstructor(object, context)); | |
1029 } | |
1030 | |
1021 } // namespace internal | 1031 } // namespace internal |
1022 } // namespace v8 | 1032 } // namespace v8 |
OLD | NEW |