OLD | NEW |
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-typed-lowering.h" | 5 #include "src/compiler/js-typed-lowering.h" |
6 | 6 |
7 #include "src/builtins/builtins-utils.h" | 7 #include "src/builtins/builtins-utils.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 Zone* zone = jsgraph->zone(); | 1700 Zone* zone = jsgraph->zone(); |
1701 if (is_construct) { | 1701 if (is_construct) { |
1702 // Unify representations between construct and call nodes. | 1702 // Unify representations between construct and call nodes. |
1703 // Remove new target and add receiver as a stack parameter. | 1703 // Remove new target and add receiver as a stack parameter. |
1704 Node* receiver = jsgraph->UndefinedConstant(); | 1704 Node* receiver = jsgraph->UndefinedConstant(); |
1705 node->RemoveInput(arity + 1); | 1705 node->RemoveInput(arity + 1); |
1706 node->InsertInput(zone, 1, receiver); | 1706 node->InsertInput(zone, 1, receiver); |
1707 } | 1707 } |
1708 | 1708 |
1709 const int argc = arity + BuiltinArguments::kNumExtraArgsWithReceiver; | 1709 const int argc = arity + BuiltinArguments::kNumExtraArgsWithReceiver; |
1710 Node* argc_node = jsgraph->Int32Constant(argc); | 1710 Node* argc_node = jsgraph->Constant(argc); |
1711 | 1711 |
1712 static const int kStubAndReceiver = 2; | 1712 static const int kStubAndReceiver = 2; |
1713 int cursor = arity + kStubAndReceiver; | 1713 int cursor = arity + kStubAndReceiver; |
1714 node->InsertInput(zone, cursor++, argc_node); | 1714 node->InsertInput(zone, cursor++, argc_node); |
1715 node->InsertInput(zone, cursor++, target); | 1715 node->InsertInput(zone, cursor++, target); |
1716 node->InsertInput(zone, cursor++, new_target); | 1716 node->InsertInput(zone, cursor++, new_target); |
1717 | 1717 |
1718 Address entry = Builtins::CppEntryOf(builtin_index); | 1718 Address entry = Builtins::CppEntryOf(builtin_index); |
1719 ExternalReference entry_ref(ExternalReference(entry, isolate)); | 1719 ExternalReference entry_ref(ExternalReference(entry, isolate)); |
1720 Node* entry_node = jsgraph->ExternalConstant(entry_ref); | 1720 Node* entry_node = jsgraph->ExternalConstant(entry_ref); |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2179 } | 2179 } |
2180 | 2180 |
2181 | 2181 |
2182 CompilationDependencies* JSTypedLowering::dependencies() const { | 2182 CompilationDependencies* JSTypedLowering::dependencies() const { |
2183 return dependencies_; | 2183 return dependencies_; |
2184 } | 2184 } |
2185 | 2185 |
2186 } // namespace compiler | 2186 } // namespace compiler |
2187 } // namespace internal | 2187 } // namespace internal |
2188 } // namespace v8 | 2188 } // namespace v8 |
OLD | NEW |