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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 ecx, // name | 414 ecx, // name |
415 }; | 415 }; |
416 static Representation representations[] = { | 416 static Representation representations[] = { |
417 Representation::Tagged(), // context | 417 Representation::Tagged(), // context |
418 Representation::Tagged(), // name | 418 Representation::Tagged(), // name |
419 }; | 419 }; |
420 descriptor->register_param_count_ = 2; | 420 descriptor->register_param_count_ = 2; |
421 descriptor->register_params_ = registers; | 421 descriptor->register_params_ = registers; |
422 descriptor->param_representations_ = representations; | 422 descriptor->param_representations_ = representations; |
423 } | 423 } |
| 424 { |
| 425 CallInterfaceDescriptor* descriptor = |
| 426 isolate->call_descriptor(Isolate::CallHandler); |
| 427 static Register registers[] = { esi, // context |
| 428 edx, // receiver |
| 429 }; |
| 430 static Representation representations[] = { |
| 431 Representation::Tagged(), // context |
| 432 Representation::Tagged(), // receiver |
| 433 }; |
| 434 descriptor->register_param_count_ = 2; |
| 435 descriptor->register_params_ = registers; |
| 436 descriptor->param_representations_ = representations; |
| 437 } |
424 } | 438 } |
425 | 439 |
426 | 440 |
427 #define __ ACCESS_MASM(masm) | 441 #define __ ACCESS_MASM(masm) |
428 | 442 |
429 | 443 |
430 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 444 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
431 // Update the static counter each time a new code stub is generated. | 445 // Update the static counter each time a new code stub is generated. |
432 Isolate* isolate = masm->isolate(); | 446 Isolate* isolate = masm->isolate(); |
433 isolate->counters()->code_stubs()->Increment(); | 447 isolate->counters()->code_stubs()->Increment(); |
(...skipping 4932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5366 __ bind(&fast_elements_case); | 5380 __ bind(&fast_elements_case); |
5367 GenerateCase(masm, FAST_ELEMENTS); | 5381 GenerateCase(masm, FAST_ELEMENTS); |
5368 } | 5382 } |
5369 | 5383 |
5370 | 5384 |
5371 #undef __ | 5385 #undef __ |
5372 | 5386 |
5373 } } // namespace v8::internal | 5387 } } // namespace v8::internal |
5374 | 5388 |
5375 #endif // V8_TARGET_ARCH_IA32 | 5389 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |