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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.h

Issue 1553703002: [runtime] TailCallRuntime and CallRuntime should use default argument counts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-12-29_TailCallRuntime_default_result_size_1_1550923002
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_
7 7
8 #include "src/crankshaft/arm64/lithium-arm64.h" 8 #include "src/crankshaft/arm64/lithium-arm64.h"
9 9
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 LInstruction* instr, 300 LInstruction* instr,
301 SaveFPRegsMode save_doubles = kDontSaveFPRegs); 301 SaveFPRegsMode save_doubles = kDontSaveFPRegs);
302 302
303 void CallRuntime(Runtime::FunctionId id, 303 void CallRuntime(Runtime::FunctionId id,
304 int num_arguments, 304 int num_arguments,
305 LInstruction* instr) { 305 LInstruction* instr) {
306 const Runtime::Function* function = Runtime::FunctionForId(id); 306 const Runtime::Function* function = Runtime::FunctionForId(id);
307 CallRuntime(function, num_arguments, instr); 307 CallRuntime(function, num_arguments, instr);
308 } 308 }
309 309
310 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) {
311 const Runtime::Function* function = Runtime::FunctionForId(id);
312 CallRuntime(function, function->nargs, instr);
313 }
314
310 void LoadContextFromDeferred(LOperand* context); 315 void LoadContextFromDeferred(LOperand* context);
311 void CallRuntimeFromDeferred(Runtime::FunctionId id, 316 void CallRuntimeFromDeferred(Runtime::FunctionId id,
312 int argc, 317 int argc,
313 LInstruction* instr, 318 LInstruction* instr,
314 LOperand* context); 319 LOperand* context);
315 320
316 // Generate a direct call to a known function. Expects the function 321 // Generate a direct call to a known function. Expects the function
317 // to be in x1. 322 // to be in x1.
318 void CallKnownFunction(Handle<JSFunction> function, 323 void CallKnownFunction(Handle<JSFunction> function,
319 int formal_parameter_count, int arity, 324 int formal_parameter_count, int arity,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 protected: 451 protected:
447 MacroAssembler* masm() const { return codegen_->masm(); } 452 MacroAssembler* masm() const { return codegen_->masm(); }
448 453
449 LCodeGen* codegen_; 454 LCodeGen* codegen_;
450 }; 455 };
451 456
452 } // namespace internal 457 } // namespace internal
453 } // namespace v8 458 } // namespace v8
454 459
455 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_ 460 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_CODEGEN_ARM64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698