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

Side by Side Diff: src/arm64/ic-arm64.cc

Issue 339663008: Revert "Create a RegisterSpec class inside of the IC that provides:" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/arm64/code-stubs-arm64.cc ('k') | src/arm64/stub-cache-arm64.cc » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/arm64/assembler-arm64.h" 9 #include "src/arm64/assembler-arm64.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 __ Push(x1, x0); 575 __ Push(x1, x0);
576 576
577 // Perform tail call to the entry. 577 // Perform tail call to the entry.
578 ExternalReference ref = 578 ExternalReference ref =
579 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate); 579 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), isolate);
580 580
581 __ TailCallExternalReference(ref, 2, 1); 581 __ TailCallExternalReference(ref, 2, 1);
582 } 582 }
583 583
584 584
585 // IC register specifications
586 Register LoadIC::kReceiverRegister = x0;
587 Register LoadIC::kNameRegister = x2;
588 const Register LoadIC::registers[] = { kReceiverRegister, kNameRegister };
589
590
591 Register KeyedLoadIC::kReceiverRegister = x1;
592 Register KeyedLoadIC::kNameRegister = x0;
593 const Register KeyedLoadIC::registers[] = { kReceiverRegister, kNameRegister };
594
595
596 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 585 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
597 // ---------- S t a t e -------------- 586 // ---------- S t a t e --------------
598 // -- lr : return address 587 // -- lr : return address
599 // -- x0 : key 588 // -- x0 : key
600 // -- x1 : receiver 589 // -- x1 : receiver
601 // ----------------------------------- 590 // -----------------------------------
602 Register key = x0; 591 Register key = x0;
603 Register receiver = x1; 592 Register receiver = x1;
604 593
605 __ Push(receiver, key); 594 __ Push(receiver, key);
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); 1378 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ);
1390 // This is JumpIfSmi(smi_reg, branch_imm). 1379 // This is JumpIfSmi(smi_reg, branch_imm).
1391 patcher.tbz(smi_reg, 0, branch_imm); 1380 patcher.tbz(smi_reg, 0, branch_imm);
1392 } 1381 }
1393 } 1382 }
1394 1383
1395 1384
1396 } } // namespace v8::internal 1385 } } // namespace v8::internal
1397 1386
1398 #endif // V8_TARGET_ARCH_ARM64 1387 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/stub-cache-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698