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

Side by Side Diff: src/arm/virtual-frame-arm.cc

Issue 1780010: Fix keyed load inlining after my last commit accidentally (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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/arm/virtual-frame-arm.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 break; 81 break;
82 case CASE_NUMBER(NO_TOS_REGISTERS, R1_TOS): 82 case CASE_NUMBER(NO_TOS_REGISTERS, R1_TOS):
83 __ pop(r1); 83 __ pop(r1);
84 break; 84 break;
85 case CASE_NUMBER(NO_TOS_REGISTERS, R0_R1_TOS): 85 case CASE_NUMBER(NO_TOS_REGISTERS, R0_R1_TOS):
86 __ pop(r0); 86 __ pop(r0);
87 __ pop(r1); 87 __ pop(r1);
88 break; 88 break;
89 case CASE_NUMBER(NO_TOS_REGISTERS, R1_R0_TOS): 89 case CASE_NUMBER(NO_TOS_REGISTERS, R1_R0_TOS):
90 __ pop(r1); 90 __ pop(r1);
91 __ pop(r1); 91 __ pop(r0);
92 break; 92 break;
93 case CASE_NUMBER(R0_TOS, NO_TOS_REGISTERS): 93 case CASE_NUMBER(R0_TOS, NO_TOS_REGISTERS):
94 __ push(r0); 94 __ push(r0);
95 break; 95 break;
96 case CASE_NUMBER(R0_TOS, R0_TOS): 96 case CASE_NUMBER(R0_TOS, R0_TOS):
97 break; 97 break;
98 case CASE_NUMBER(R0_TOS, R1_TOS): 98 case CASE_NUMBER(R0_TOS, R1_TOS):
99 __ mov(r1, r0); 99 __ mov(r1, r0);
100 break; 100 break;
101 case CASE_NUMBER(R0_TOS, R0_R1_TOS): 101 case CASE_NUMBER(R0_TOS, R0_R1_TOS):
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 __ Push(r0, r1); 422 __ Push(r0, r1);
423 __ mov(r0, r1); 423 __ mov(r0, r1);
424 break; 424 break;
425 default: 425 default:
426 UNREACHABLE(); 426 UNREACHABLE();
427 } 427 }
428 top_of_stack_state_ = NO_TOS_REGISTERS; 428 top_of_stack_state_ = NO_TOS_REGISTERS;
429 } 429 }
430 430
431 431
432 void VirtualFrame::SpillAllButCopyTOSToR1R0() {
433 switch (top_of_stack_state_) {
434 case NO_TOS_REGISTERS:
435 __ ldr(r1, MemOperand(sp, 0));
436 __ ldr(r0, MemOperand(sp, kPointerSize));
437 break;
438 case R0_TOS:
439 __ push(r0);
440 __ mov(r1, r0);
441 __ ldr(r0, MemOperand(sp, kPointerSize));
442 break;
443 case R1_TOS:
444 __ push(r1);
445 __ ldr(r0, MemOperand(sp, kPointerSize));
446 break;
447 case R0_R1_TOS:
448 __ Push(r1, r0);
449 __ Swap(r0, r1, ip);
450 break;
451 case R1_R0_TOS:
452 __ Push(r0, r1);
453 break;
454 default:
455 UNREACHABLE();
456 }
457 top_of_stack_state_ = NO_TOS_REGISTERS;
458 }
459
460
432 Register VirtualFrame::Peek() { 461 Register VirtualFrame::Peek() {
433 AssertIsNotSpilled(); 462 AssertIsNotSpilled();
434 if (top_of_stack_state_ == NO_TOS_REGISTERS) { 463 if (top_of_stack_state_ == NO_TOS_REGISTERS) {
435 top_of_stack_state_ = kStateAfterPush[top_of_stack_state_]; 464 top_of_stack_state_ = kStateAfterPush[top_of_stack_state_];
436 Register answer = kTopRegister[top_of_stack_state_]; 465 Register answer = kTopRegister[top_of_stack_state_];
437 __ pop(answer); 466 __ pop(answer);
438 return answer; 467 return answer;
439 } else { 468 } else {
440 return kTopRegister[top_of_stack_state_]; 469 return kTopRegister[top_of_stack_state_];
441 } 470 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 default: 576 default:
548 UNREACHABLE(); 577 UNREACHABLE();
549 break; 578 break;
550 } 579 }
551 ASSERT(register_allocation_map_ == 0); // Not yet implemented. 580 ASSERT(register_allocation_map_ == 0); // Not yet implemented.
552 } 581 }
553 582
554 #undef __ 583 #undef __
555 584
556 } } // namespace v8::internal 585 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/virtual-frame-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698