Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 142693005: A64: Synchronize with r16918. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 case CodeStub::RegExpExec: { 966 case CodeStub::RegExpExec: {
967 RegExpExecStub stub; 967 RegExpExecStub stub;
968 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 968 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
969 break; 969 break;
970 } 970 }
971 case CodeStub::SubString: { 971 case CodeStub::SubString: {
972 SubStringStub stub; 972 SubStringStub stub;
973 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 973 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
974 break; 974 break;
975 } 975 }
976 case CodeStub::NumberToString: {
977 NumberToStringStub stub;
978 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
979 break;
980 }
981 case CodeStub::StringCompare: { 976 case CodeStub::StringCompare: {
982 StringCompareStub stub; 977 StringCompareStub stub;
983 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 978 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
984 break; 979 break;
985 } 980 }
986 case CodeStub::TranscendentalCache: { 981 case CodeStub::TranscendentalCache: {
987 TranscendentalCacheStub stub(instr->transcendental_type(), 982 TranscendentalCacheStub stub(instr->transcendental_type(),
988 TranscendentalCacheStub::TAGGED); 983 TranscendentalCacheStub::TAGGED);
989 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 984 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
990 break; 985 break;
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
2661 __ jmp(return_addr_reg); 2656 __ jmp(return_addr_reg);
2662 } 2657 }
2663 if (no_frame_start != -1) { 2658 if (no_frame_start != -1) {
2664 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset()); 2659 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset());
2665 } 2660 }
2666 } 2661 }
2667 2662
2668 2663
2669 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2664 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
2670 Register result = ToRegister(instr->result()); 2665 Register result = ToRegister(instr->result());
2671 __ LoadGlobalCell(result, instr->hydrogen()->cell()); 2666 __ LoadGlobalCell(result, instr->hydrogen()->cell().handle());
2672 if (instr->hydrogen()->RequiresHoleCheck()) { 2667 if (instr->hydrogen()->RequiresHoleCheck()) {
2673 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); 2668 __ CompareRoot(result, Heap::kTheHoleValueRootIndex);
2674 DeoptimizeIf(equal, instr->environment()); 2669 DeoptimizeIf(equal, instr->environment());
2675 } 2670 }
2676 } 2671 }
2677 2672
2678 2673
2679 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2674 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
2680 ASSERT(ToRegister(instr->global_object()).is(rax)); 2675 ASSERT(ToRegister(instr->global_object()).is(rax));
2681 ASSERT(ToRegister(instr->result()).is(rax)); 2676 ASSERT(ToRegister(instr->result()).is(rax));
2682 2677
2683 __ Move(rcx, instr->name()); 2678 __ Move(rcx, instr->name());
2684 RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET : 2679 RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET :
2685 RelocInfo::CODE_TARGET_CONTEXT; 2680 RelocInfo::CODE_TARGET_CONTEXT;
2686 Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); 2681 Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
2687 CallCode(ic, mode, instr); 2682 CallCode(ic, mode, instr);
2688 } 2683 }
2689 2684
2690 2685
2691 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) { 2686 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) {
2692 Register value = ToRegister(instr->value()); 2687 Register value = ToRegister(instr->value());
2693 Handle<Cell> cell_handle = instr->hydrogen()->cell(); 2688 Handle<Cell> cell_handle = instr->hydrogen()->cell().handle();
2694 2689
2695 // If the cell we are storing to contains the hole it could have 2690 // If the cell we are storing to contains the hole it could have
2696 // been deleted from the property dictionary. In that case, we need 2691 // been deleted from the property dictionary. In that case, we need
2697 // to update the property details in the property dictionary to mark 2692 // to update the property details in the property dictionary to mark
2698 // it as no longer deleted. We deoptimize in that case. 2693 // it as no longer deleted. We deoptimize in that case.
2699 if (instr->hydrogen()->RequiresHoleCheck()) { 2694 if (instr->hydrogen()->RequiresHoleCheck()) {
2700 // We have a temp because CompareRoot might clobber kScratchRegister. 2695 // We have a temp because CompareRoot might clobber kScratchRegister.
2701 Register cell = ToRegister(instr->temp()); 2696 Register cell = ToRegister(instr->temp());
2702 ASSERT(!value.is(cell)); 2697 ASSERT(!value.is(cell));
2703 __ movq(cell, cell_handle, RelocInfo::CELL); 2698 __ movq(cell, cell_handle, RelocInfo::CELL);
(...skipping 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after
5516 FixedArray::kHeaderSize - kPointerSize)); 5511 FixedArray::kHeaderSize - kPointerSize));
5517 __ bind(&done); 5512 __ bind(&done);
5518 } 5513 }
5519 5514
5520 5515
5521 #undef __ 5516 #undef __
5522 5517
5523 } } // namespace v8::internal 5518 } } // namespace v8::internal
5524 5519
5525 #endif // V8_TARGET_ARCH_X64 5520 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698