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

Side by Side Diff: src/codegen.cc

Issue 20533: Experimental: fix a frame-height issue with eval on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 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 | « no previous file | src/codegen-arm.cc » ('j') | src/codegen-arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 453
454 for (int i = 0; i < length; i++) { 454 for (int i = 0; i < length; i++) {
455 Comment cmnt(masm(), "[ Case clause"); 455 Comment cmnt(masm(), "[ Case clause");
456 masm()->bind(&case_labels[i]); 456 masm()->bind(&case_labels[i]);
457 VisitStatements(cases->at(i)->statements()); 457 VisitStatements(cases->at(i)->statements());
458 458
459 // If control flow did not fall off the end of the case statement, 459 // If control flow did not fall off the end of the case statement,
460 // we restore the expected frame for the next iteration (or exit 460 // we restore the expected frame for the next iteration (or exit
461 // of the loop). Otherwise we have to generate merge code to 461 // of the loop). Otherwise we have to generate merge code to
462 // expectation at the next case. 462 // expectation at the next case.
463 if (frame_ == NULL) { 463 if (!has_valid_frame()) {
464 RegisterFile non_frame_registers = RegisterAllocator::Reserved(); 464 RegisterFile non_frame_registers = RegisterAllocator::Reserved();
465 SetFrame(new VirtualFrame(start_frame), &non_frame_registers); 465 SetFrame(new VirtualFrame(start_frame), &non_frame_registers);
466 } else { 466 } else {
467 frame_->MergeTo(start_frame); 467 frame_->MergeTo(start_frame);
468 } 468 }
469 } 469 }
470 } 470 }
471 471
472 472
473 bool CodeGenerator::TryGenerateFastCaseSwitchStatement(SwitchStatement* node) { 473 bool CodeGenerator::TryGenerateFastCaseSwitchStatement(SwitchStatement* node) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 563 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
564 switch (type_) { 564 switch (type_) {
565 case READ_LENGTH: GenerateReadLength(masm); break; 565 case READ_LENGTH: GenerateReadLength(masm); break;
566 case READ_ELEMENT: GenerateReadElement(masm); break; 566 case READ_ELEMENT: GenerateReadElement(masm); break;
567 case NEW_OBJECT: GenerateNewObject(masm); break; 567 case NEW_OBJECT: GenerateNewObject(masm); break;
568 } 568 }
569 } 569 }
570 570
571 571
572 } } // namespace v8::internal 572 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/codegen-arm.cc » ('j') | src/codegen-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698