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/code-stub-assembler.h" | 9 #include "src/code-stub-assembler.h" |
10 #include "src/contexts.h" | 10 #include "src/contexts.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 Label object_push_pre(&assembler); | 194 Label object_push_pre(&assembler); |
195 Label object_push(&assembler, &arg_index); | 195 Label object_push(&assembler, &arg_index); |
196 Label double_push(&assembler, &arg_index); | 196 Label double_push(&assembler, &arg_index); |
197 Label double_transition(&assembler); | 197 Label double_transition(&assembler); |
198 Label runtime(&assembler, Label::kDeferred); | 198 Label runtime(&assembler, Label::kDeferred); |
199 | 199 |
200 Node* argc = assembler.Parameter(BuiltinDescriptor::kArgumentsCount); | 200 Node* argc = assembler.Parameter(BuiltinDescriptor::kArgumentsCount); |
201 Node* context = assembler.Parameter(BuiltinDescriptor::kContext); | 201 Node* context = assembler.Parameter(BuiltinDescriptor::kContext); |
202 Node* new_target = assembler.Parameter(BuiltinDescriptor::kNewTarget); | 202 Node* new_target = assembler.Parameter(BuiltinDescriptor::kNewTarget); |
203 | 203 |
204 CodeStubArguments args(&assembler, argc); | 204 CodeStubArguments args(&assembler, assembler.ChangeInt32ToIntPtr(argc)); |
205 Node* receiver = args.GetReceiver(); | 205 Node* receiver = args.GetReceiver(); |
206 Node* kind = nullptr; | 206 Node* kind = nullptr; |
207 | 207 |
208 Label fast(&assembler); | 208 Label fast(&assembler); |
209 { | 209 { |
210 assembler.BranchIfFastJSArray( | 210 assembler.BranchIfFastJSArray( |
211 receiver, context, CodeStubAssembler::FastJSArrayAccessMode::ANY_ACCESS, | 211 receiver, context, CodeStubAssembler::FastJSArrayAccessMode::ANY_ACCESS, |
212 &fast, &runtime); | 212 &fast, &runtime); |
213 } | 213 } |
214 | 214 |
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2755 Node* message = assembler.SmiConstant(MessageTemplate::kDetachedOperation); | 2755 Node* message = assembler.SmiConstant(MessageTemplate::kDetachedOperation); |
2756 Node* result = | 2756 Node* result = |
2757 assembler.CallRuntime(Runtime::kThrowTypeError, context, message, | 2757 assembler.CallRuntime(Runtime::kThrowTypeError, context, message, |
2758 assembler.HeapConstant(operation)); | 2758 assembler.HeapConstant(operation)); |
2759 assembler.Return(result); | 2759 assembler.Return(result); |
2760 } | 2760 } |
2761 } | 2761 } |
2762 | 2762 |
2763 } // namespace internal | 2763 } // namespace internal |
2764 } // namespace v8 | 2764 } // namespace v8 |
OLD | NEW |