| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 void CallRuntime(Runtime::FunctionId id, | 187 void CallRuntime(Runtime::FunctionId id, |
| 188 int num_arguments, | 188 int num_arguments, |
| 189 LInstruction* instr) { | 189 LInstruction* instr) { |
| 190 const Runtime::Function* function = Runtime::FunctionForId(id); | 190 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 191 CallRuntime(function, num_arguments, instr); | 191 CallRuntime(function, num_arguments, instr); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 194 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 195 int argc, | 195 int argc, |
| 196 LInstruction* instr); | 196 LInstruction* instr, |
| 197 LOperand* context); |
| 198 |
| 199 void LoadContextFromDeferred(LOperand* context); |
| 197 | 200 |
| 198 enum RDIState { | 201 enum RDIState { |
| 199 RDI_UNINITIALIZED, | 202 RDI_UNINITIALIZED, |
| 200 RDI_CONTAINS_TARGET | 203 RDI_CONTAINS_TARGET |
| 201 }; | 204 }; |
| 202 | 205 |
| 203 // Generate a direct call to a known function. Expects the function | 206 // Generate a direct call to a known function. Expects the function |
| 204 // to be in rdi. | 207 // to be in rdi. |
| 205 void CallKnownFunction(Handle<JSFunction> function, | 208 void CallKnownFunction(Handle<JSFunction> function, |
| 206 int formal_parameter_count, | 209 int formal_parameter_count, |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 Label entry_; | 402 Label entry_; |
| 400 Label exit_; | 403 Label exit_; |
| 401 Label done_; | 404 Label done_; |
| 402 Label* external_exit_; | 405 Label* external_exit_; |
| 403 int instruction_index_; | 406 int instruction_index_; |
| 404 }; | 407 }; |
| 405 | 408 |
| 406 } } // namespace v8::internal | 409 } } // namespace v8::internal |
| 407 | 410 |
| 408 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 411 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |