OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 rdx, // receiver | 425 rdx, // receiver |
426 }; | 426 }; |
427 static Representation representations[] = { | 427 static Representation representations[] = { |
428 Representation::Tagged(), // context | 428 Representation::Tagged(), // context |
429 Representation::Tagged(), // receiver | 429 Representation::Tagged(), // receiver |
430 }; | 430 }; |
431 descriptor->register_param_count_ = 2; | 431 descriptor->register_param_count_ = 2; |
432 descriptor->register_params_ = registers; | 432 descriptor->register_params_ = registers; |
433 descriptor->param_representations_ = representations; | 433 descriptor->param_representations_ = representations; |
434 } | 434 } |
| 435 { |
| 436 CallInterfaceDescriptor* descriptor = |
| 437 isolate->call_descriptor(Isolate::ApiFunctionCall); |
| 438 static Register registers[] = { rax, // callee |
| 439 rbx, // call_data |
| 440 rcx, // holder |
| 441 rdx, // api_function_address |
| 442 rsi, // context |
| 443 }; |
| 444 static Representation representations[] = { |
| 445 Representation::Tagged(), // callee |
| 446 Representation::Tagged(), // call_data |
| 447 Representation::Tagged(), // holder |
| 448 Representation::External(), // api_function_address |
| 449 Representation::Tagged(), // context |
| 450 }; |
| 451 descriptor->register_param_count_ = 5; |
| 452 descriptor->register_params_ = registers; |
| 453 descriptor->param_representations_ = representations; |
| 454 } |
435 } | 455 } |
436 | 456 |
437 | 457 |
438 #define __ ACCESS_MASM(masm) | 458 #define __ ACCESS_MASM(masm) |
439 | 459 |
440 | 460 |
441 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 461 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
442 // Update the static counter each time a new code stub is generated. | 462 // Update the static counter each time a new code stub is generated. |
443 Isolate* isolate = masm->isolate(); | 463 Isolate* isolate = masm->isolate(); |
444 isolate->counters()->code_stubs()->Increment(); | 464 isolate->counters()->code_stubs()->Increment(); |
(...skipping 4827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5272 return_value_operand, | 5292 return_value_operand, |
5273 restore_context ? &context_restore_operand : NULL); | 5293 restore_context ? &context_restore_operand : NULL); |
5274 } | 5294 } |
5275 | 5295 |
5276 | 5296 |
5277 #undef __ | 5297 #undef __ |
5278 | 5298 |
5279 } } // namespace v8::internal | 5299 } } // namespace v8::internal |
5280 | 5300 |
5281 #endif // V8_TARGET_ARCH_X64 | 5301 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |