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

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

Issue 2661483002: [csa] Make argc parameter to CodeStubArguments constructor use ParameterMode (Closed)
Patch Set: Fix build Created 3 years, 10 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 | « src/builtins/builtins-array.cc ('k') | src/builtins/builtins-string.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-utils.h" 5 #include "src/builtins/builtins-utils.h"
6 #include "src/builtins/builtins.h" 6 #include "src/builtins/builtins.h"
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stub-assembler.h" 8 #include "src/code-stub-assembler.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/string-builder.h" 10 #include "src/string-builder.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 typedef CodeStubAssembler::Label Label; 260 typedef CodeStubAssembler::Label Label;
261 typedef CodeStubAssembler::Variable Variable; 261 typedef CodeStubAssembler::Variable Variable;
262 262
263 CodeStubAssembler assembler(state); 263 CodeStubAssembler assembler(state);
264 Label slow(&assembler); 264 Label slow(&assembler);
265 265
266 Node* argc = assembler.Parameter(BuiltinDescriptor::kArgumentsCount); 266 Node* argc = assembler.Parameter(BuiltinDescriptor::kArgumentsCount);
267 Node* context = assembler.Parameter(BuiltinDescriptor::kContext); 267 Node* context = assembler.Parameter(BuiltinDescriptor::kContext);
268 Node* new_target = assembler.Parameter(BuiltinDescriptor::kNewTarget); 268 Node* new_target = assembler.Parameter(BuiltinDescriptor::kNewTarget);
269 269
270 CodeStubArguments args(&assembler, argc); 270 CodeStubArguments args(&assembler, assembler.ChangeInt32ToIntPtr(argc));
271 271
272 // Check that receiver has instance type of JS_FUNCTION_TYPE 272 // Check that receiver has instance type of JS_FUNCTION_TYPE
273 Node* receiver = args.GetReceiver(); 273 Node* receiver = args.GetReceiver();
274 assembler.GotoIf(assembler.TaggedIsSmi(receiver), &slow); 274 assembler.GotoIf(assembler.TaggedIsSmi(receiver), &slow);
275 275
276 Node* receiver_map = assembler.LoadMap(receiver); 276 Node* receiver_map = assembler.LoadMap(receiver);
277 Node* instance_type = assembler.LoadMapInstanceType(receiver_map); 277 Node* instance_type = assembler.LoadMapInstanceType(receiver_map);
278 assembler.GotoIf( 278 assembler.GotoIf(
279 assembler.Word32NotEqual(instance_type, 279 assembler.Word32NotEqual(instance_type,
280 assembler.Int32Constant(JS_FUNCTION_TYPE)), 280 assembler.Int32Constant(JS_FUNCTION_TYPE)),
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 Node* f = assembler.Parameter(0); 467 Node* f = assembler.Parameter(0);
468 Node* v = assembler.Parameter(1); 468 Node* v = assembler.Parameter(1);
469 Node* context = assembler.Parameter(4); 469 Node* context = assembler.Parameter(4);
470 Node* result = assembler.OrdinaryHasInstance(context, f, v); 470 Node* result = assembler.OrdinaryHasInstance(context, f, v);
471 assembler.Return(result); 471 assembler.Return(result);
472 } 472 }
473 473
474 } // namespace internal 474 } // namespace internal
475 } // namespace v8 475 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-array.cc ('k') | src/builtins/builtins-string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698