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

Side by Side Diff: src/mips/lithium-codegen-mips.h

Issue 817483005: LCodeGen::CallKnownFunction gets the function in register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix arm Created 5 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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS_LITHIUM_CODEGEN_MIPS_H_ 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
7 7
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/lithium-codegen.h" 9 #include "src/lithium-codegen.h"
10 #include "src/mips/lithium-gap-resolver-mips.h" 10 #include "src/mips/lithium-gap-resolver-mips.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const Runtime::Function* function = Runtime::FunctionForId(id); 203 const Runtime::Function* function = Runtime::FunctionForId(id);
204 CallRuntime(function, num_arguments, instr); 204 CallRuntime(function, num_arguments, instr);
205 } 205 }
206 206
207 void LoadContextFromDeferred(LOperand* context); 207 void LoadContextFromDeferred(LOperand* context);
208 void CallRuntimeFromDeferred(Runtime::FunctionId id, 208 void CallRuntimeFromDeferred(Runtime::FunctionId id,
209 int argc, 209 int argc,
210 LInstruction* instr, 210 LInstruction* instr,
211 LOperand* context); 211 LOperand* context);
212 212
213 enum A1State {
214 A1_UNINITIALIZED,
215 A1_CONTAINS_TARGET
216 };
217
218 // Generate a direct call to a known function. Expects the function 213 // Generate a direct call to a known function. Expects the function
219 // to be in a1. 214 // to be in a1.
220 void CallKnownFunction(Handle<JSFunction> function, 215 void CallKnownFunction(Handle<JSFunction> function,
221 int formal_parameter_count, 216 int formal_parameter_count, int arity,
222 int arity, 217 LInstruction* instr);
223 LInstruction* instr,
224 A1State a1_state);
225 218
226 void RecordSafepointWithLazyDeopt(LInstruction* instr, 219 void RecordSafepointWithLazyDeopt(LInstruction* instr,
227 SafepointMode safepoint_mode); 220 SafepointMode safepoint_mode);
228 221
229 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, 222 void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
230 Safepoint::DeoptMode mode); 223 Safepoint::DeoptMode mode);
231 void DeoptimizeIf(Condition condition, LInstruction* instr, 224 void DeoptimizeIf(Condition condition, LInstruction* instr,
232 Deoptimizer::BailoutType bailout_type, const char* detail, 225 Deoptimizer::BailoutType bailout_type, const char* detail,
233 Register src1 = zero_reg, 226 Register src1 = zero_reg,
234 const Operand& src2 = Operand(zero_reg)); 227 const Operand& src2 = Operand(zero_reg));
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 LCodeGen* codegen_; 431 LCodeGen* codegen_;
439 Label entry_; 432 Label entry_;
440 Label exit_; 433 Label exit_;
441 Label* external_exit_; 434 Label* external_exit_;
442 int instruction_index_; 435 int instruction_index_;
443 }; 436 };
444 437
445 } } // namespace v8::internal 438 } } // namespace v8::internal
446 439
447 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 440 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698