| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 | 494 |
| 495 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 495 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 496 switch (type_) { | 496 switch (type_) { |
| 497 case READ_ELEMENT: GenerateReadElement(masm); break; | 497 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 498 case NEW_OBJECT: GenerateNewObject(masm); break; | 498 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 499 } | 499 } |
| 500 } | 500 } |
| 501 | 501 |
| 502 | 502 |
| 503 int CEntryStub::MinorKey() { | 503 int CEntryStub::MinorKey() { |
| 504 ASSERT(result_size_ <= 2); | 504 ASSERT(result_size_ == 1 || result_size_ == 2); |
| 505 #ifdef _WIN64 | 505 #ifdef _WIN64 |
| 506 return ExitFrameModeBits::encode(mode_) | 506 return result_size_ == 1 ? 0 : 1; |
| 507 | IndirectResultBits::encode(result_size_ > 1); | |
| 508 #else | 507 #else |
| 509 return ExitFrameModeBits::encode(mode_); | 508 return 0; |
| 510 #endif | 509 #endif |
| 511 } | 510 } |
| 512 | 511 |
| 513 | 512 |
| 514 bool ApiGetterEntryStub::GetCustomCache(Code** code_out) { | 513 bool ApiGetterEntryStub::GetCustomCache(Code** code_out) { |
| 515 Object* cache = info()->load_stub_cache(); | 514 Object* cache = info()->load_stub_cache(); |
| 516 if (cache->IsUndefined()) { | 515 if (cache->IsUndefined()) { |
| 517 return false; | 516 return false; |
| 518 } else { | 517 } else { |
| 519 *code_out = Code::cast(cache); | 518 *code_out = Code::cast(cache); |
| 520 return true; | 519 return true; |
| 521 } | 520 } |
| 522 } | 521 } |
| 523 | 522 |
| 524 | 523 |
| 525 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 524 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
| 526 info()->set_load_stub_cache(value); | 525 info()->set_load_stub_cache(value); |
| 527 } | 526 } |
| 528 | 527 |
| 529 | 528 |
| 530 } } // namespace v8::internal | 529 } } // namespace v8::internal |
| OLD | NEW |