OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 int num_arguments, | 247 int num_arguments, |
248 LInstruction* instr); | 248 LInstruction* instr); |
249 | 249 |
250 void CallRuntime(Runtime::FunctionId id, | 250 void CallRuntime(Runtime::FunctionId id, |
251 int num_arguments, | 251 int num_arguments, |
252 LInstruction* instr) { | 252 LInstruction* instr) { |
253 const Runtime::Function* function = Runtime::FunctionForId(id); | 253 const Runtime::Function* function = Runtime::FunctionForId(id); |
254 CallRuntime(function, num_arguments, instr); | 254 CallRuntime(function, num_arguments, instr); |
255 } | 255 } |
256 | 256 |
| 257 void LoadContextFromDeferred(LOperand* context); |
257 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 258 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
258 int argc, | 259 int argc, |
259 LInstruction* instr); | 260 LInstruction* instr, |
| 261 LOperand* context); |
260 | 262 |
261 enum A1State { | 263 enum A1State { |
262 A1_UNINITIALIZED, | 264 A1_UNINITIALIZED, |
263 A1_CONTAINS_TARGET | 265 A1_CONTAINS_TARGET |
264 }; | 266 }; |
265 | 267 |
266 // Generate a direct call to a known function. Expects the function | 268 // Generate a direct call to a known function. Expects the function |
267 // to be in a1. | 269 // to be in a1. |
268 void CallKnownFunction(Handle<JSFunction> function, | 270 void CallKnownFunction(Handle<JSFunction> function, |
269 int formal_parameter_count, | 271 int formal_parameter_count, |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 LCodeGen* codegen_; | 519 LCodeGen* codegen_; |
518 Label entry_; | 520 Label entry_; |
519 Label exit_; | 521 Label exit_; |
520 Label* external_exit_; | 522 Label* external_exit_; |
521 int instruction_index_; | 523 int instruction_index_; |
522 }; | 524 }; |
523 | 525 |
524 } } // namespace v8::internal | 526 } } // namespace v8::internal |
525 | 527 |
526 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 528 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |