| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 ecx, // name | 404 ecx, // name |
| 405 }; | 405 }; |
| 406 static Representation representations[] = { | 406 static Representation representations[] = { |
| 407 Representation::Tagged(), // context | 407 Representation::Tagged(), // context |
| 408 Representation::Tagged(), // name | 408 Representation::Tagged(), // name |
| 409 }; | 409 }; |
| 410 descriptor->register_param_count_ = 2; | 410 descriptor->register_param_count_ = 2; |
| 411 descriptor->register_params_ = registers; | 411 descriptor->register_params_ = registers; |
| 412 descriptor->param_representations_ = representations; | 412 descriptor->param_representations_ = representations; |
| 413 } | 413 } |
| 414 { |
| 415 CallInterfaceDescriptor* descriptor = |
| 416 isolate->call_descriptor(Isolate::CallHandler); |
| 417 static Register registers[] = { esi, // context |
| 418 edx, // receiver |
| 419 }; |
| 420 static Representation representations[] = { |
| 421 Representation::Tagged(), // context |
| 422 Representation::Tagged(), // receiver |
| 423 }; |
| 424 descriptor->register_param_count_ = 2; |
| 425 descriptor->register_params_ = registers; |
| 426 descriptor->param_representations_ = representations; |
| 427 } |
| 414 } | 428 } |
| 415 | 429 |
| 416 | 430 |
| 417 #define __ ACCESS_MASM(masm) | 431 #define __ ACCESS_MASM(masm) |
| 418 | 432 |
| 419 | 433 |
| 420 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 434 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
| 421 // Update the static counter each time a new code stub is generated. | 435 // Update the static counter each time a new code stub is generated. |
| 422 Isolate* isolate = masm->isolate(); | 436 Isolate* isolate = masm->isolate(); |
| 423 isolate->counters()->code_stubs()->Increment(); | 437 isolate->counters()->code_stubs()->Increment(); |
| (...skipping 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5911 __ bind(&fast_elements_case); | 5925 __ bind(&fast_elements_case); |
| 5912 GenerateCase(masm, FAST_ELEMENTS); | 5926 GenerateCase(masm, FAST_ELEMENTS); |
| 5913 } | 5927 } |
| 5914 | 5928 |
| 5915 | 5929 |
| 5916 #undef __ | 5930 #undef __ |
| 5917 | 5931 |
| 5918 } } // namespace v8::internal | 5932 } } // namespace v8::internal |
| 5919 | 5933 |
| 5920 #endif // V8_TARGET_ARCH_IA32 | 5934 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |