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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 rcx, // name | 411 rcx, // name |
412 }; | 412 }; |
413 static Representation representations[] = { | 413 static Representation representations[] = { |
414 Representation::Tagged(), // context | 414 Representation::Tagged(), // context |
415 Representation::Tagged(), // name | 415 Representation::Tagged(), // name |
416 }; | 416 }; |
417 descriptor->register_param_count_ = 2; | 417 descriptor->register_param_count_ = 2; |
418 descriptor->register_params_ = registers; | 418 descriptor->register_params_ = registers; |
419 descriptor->param_representations_ = representations; | 419 descriptor->param_representations_ = representations; |
420 } | 420 } |
421 { | |
422 CallInterfaceDescriptor* descriptor = | |
423 isolate->call_descriptor(Isolate::CallHandler); | |
424 static Register registers[] = { rsi, // context | |
425 rdx, // receiver | |
426 }; | |
427 static Representation representations[] = { | |
428 Representation::Tagged(), // context | |
429 Representation::Tagged(), // receiver | |
430 }; | |
431 descriptor->register_param_count_ = 2; | |
432 descriptor->register_params_ = registers; | |
433 descriptor->param_representations_ = representations; | |
434 } | |
435 } | 421 } |
436 | 422 |
437 | 423 |
438 #define __ ACCESS_MASM(masm) | 424 #define __ ACCESS_MASM(masm) |
439 | 425 |
440 | 426 |
441 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { | 427 void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
442 // Update the static counter each time a new code stub is generated. | 428 // Update the static counter each time a new code stub is generated. |
443 Isolate* isolate = masm->isolate(); | 429 Isolate* isolate = masm->isolate(); |
444 isolate->counters()->code_stubs()->Increment(); | 430 isolate->counters()->code_stubs()->Increment(); |
(...skipping 4775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5220 __ bind(&fast_elements_case); | 5206 __ bind(&fast_elements_case); |
5221 GenerateCase(masm, FAST_ELEMENTS); | 5207 GenerateCase(masm, FAST_ELEMENTS); |
5222 } | 5208 } |
5223 | 5209 |
5224 | 5210 |
5225 #undef __ | 5211 #undef __ |
5226 | 5212 |
5227 } } // namespace v8::internal | 5213 } } // namespace v8::internal |
5228 | 5214 |
5229 #endif // V8_TARGET_ARCH_X64 | 5215 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |