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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 edx, // receiver | 428 edx, // receiver |
429 }; | 429 }; |
430 static Representation representations[] = { | 430 static Representation representations[] = { |
431 Representation::Tagged(), // context | 431 Representation::Tagged(), // context |
432 Representation::Tagged(), // receiver | 432 Representation::Tagged(), // receiver |
433 }; | 433 }; |
434 descriptor->register_param_count_ = 2; | 434 descriptor->register_param_count_ = 2; |
435 descriptor->register_params_ = registers; | 435 descriptor->register_params_ = registers; |
436 descriptor->param_representations_ = representations; | 436 descriptor->param_representations_ = representations; |
437 } | 437 } |
| 438 { |
| 439 CallInterfaceDescriptor* descriptor = |
| 440 isolate->call_descriptor(Isolate::ApiFunctionCall); |
| 441 static Register registers[] = { eax, // callee |
| 442 ebx, // call_data |
| 443 ecx, // holder |
| 444 edx, // api_function_address |
| 445 esi, // context |
| 446 }; |
| 447 static Representation representations[] = { |
| 448 Representation::Tagged(), // callee |
| 449 Representation::Tagged(), // call_data |
| 450 Representation::Tagged(), // holder |
| 451 Representation::External(), // api_function_address |
| 452 Representation::Tagged(), // context |
| 453 }; |
| 454 descriptor->register_param_count_ = 5; |
| 455 descriptor->register_params_ = registers; |
| 456 descriptor->param_representations_ = representations; |
| 457 } |
438 } | 458 } |
439 | 459 |
440 | 460 |
441 #define __ ACCESS_MASM(masm) | 461 #define __ ACCESS_MASM(masm) |
442 | 462 |
443 | 463 |
444 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 464 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
445 // Update the static counter each time a new code stub is generated. | 465 // Update the static counter each time a new code stub is generated. |
446 Isolate* isolate = masm->isolate(); | 466 Isolate* isolate = masm->isolate(); |
447 isolate->counters()->code_stubs()->Increment(); | 467 isolate->counters()->code_stubs()->Increment(); |
(...skipping 4979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5427 restore_context ? | 5447 restore_context ? |
5428 &context_restore_operand : NULL); | 5448 &context_restore_operand : NULL); |
5429 } | 5449 } |
5430 | 5450 |
5431 | 5451 |
5432 #undef __ | 5452 #undef __ |
5433 | 5453 |
5434 } } // namespace v8::internal | 5454 } } // namespace v8::internal |
5435 | 5455 |
5436 #endif // V8_TARGET_ARCH_IA32 | 5456 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |