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

Side by Side Diff: src/builtins/builtins-array.cc

Issue 2661483002: [csa] Make argc parameter to CodeStubArguments constructor use ParameterMode (Closed)
Patch Set: Fix build Created 3 years, 11 months 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
« no previous file with comments | « no previous file | src/builtins/builtins-function.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698