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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 rdx, // receiver | 436 rdx, // receiver |
437 }; | 437 }; |
438 static Representation representations[] = { | 438 static Representation representations[] = { |
439 Representation::Tagged(), // context | 439 Representation::Tagged(), // context |
440 Representation::Tagged(), // receiver | 440 Representation::Tagged(), // receiver |
441 }; | 441 }; |
442 descriptor->register_param_count_ = 2; | 442 descriptor->register_param_count_ = 2; |
443 descriptor->register_params_ = registers; | 443 descriptor->register_params_ = registers; |
444 descriptor->param_representations_ = representations; | 444 descriptor->param_representations_ = representations; |
445 } | 445 } |
| 446 { |
| 447 CallInterfaceDescriptor* descriptor = |
| 448 isolate->call_descriptor(Isolate::ApiFunctionCall); |
| 449 static Register registers[] = { rax, // callee |
| 450 rbx, // call_data |
| 451 rcx, // holder |
| 452 rdx, // api_function_address |
| 453 rsi, // context |
| 454 }; |
| 455 static Representation representations[] = { |
| 456 Representation::Tagged(), // callee |
| 457 Representation::Tagged(), // call_data |
| 458 Representation::Tagged(), // holder |
| 459 Representation::External(), // api_function_address |
| 460 Representation::Tagged(), // context |
| 461 }; |
| 462 descriptor->register_param_count_ = 5; |
| 463 descriptor->register_params_ = registers; |
| 464 descriptor->param_representations_ = representations; |
| 465 } |
446 } | 466 } |
447 | 467 |
448 | 468 |
449 #define __ ACCESS_MASM(masm) | 469 #define __ ACCESS_MASM(masm) |
450 | 470 |
451 | 471 |
452 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 472 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
453 // Update the static counter each time a new code stub is generated. | 473 // Update the static counter each time a new code stub is generated. |
454 Isolate* isolate = masm->isolate(); | 474 Isolate* isolate = masm->isolate(); |
455 isolate->counters()->code_stubs()->Increment(); | 475 isolate->counters()->code_stubs()->Increment(); |
(...skipping 4802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5258 return_value_operand, | 5278 return_value_operand, |
5259 NULL); | 5279 NULL); |
5260 } | 5280 } |
5261 | 5281 |
5262 | 5282 |
5263 #undef __ | 5283 #undef __ |
5264 | 5284 |
5265 } } // namespace v8::internal | 5285 } } // namespace v8::internal |
5266 | 5286 |
5267 #endif // V8_TARGET_ARCH_X64 | 5287 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |