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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 15841007: Remove HCheckSmi, LCheckSmi and rename LCheckSmiAndReturn to LCheckSmi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use ForceRepresentation rather than directly inserting HChange Created 7 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/lithium-codegen-arm.cc ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 LoopBuilder builder(this, 635 LoopBuilder builder(this,
636 context(), 636 context(),
637 LoopBuilder::kPostIncrement); 637 LoopBuilder::kPostIncrement);
638 HValue* start = graph()->GetConstant0(); 638 HValue* start = graph()->GetConstant0();
639 HValue* key = builder.BeginBody(start, length, Token::LT); 639 HValue* key = builder.BeginBody(start, length, Token::LT);
640 HInstruction* argument_elements = AddInstruction( 640 HInstruction* argument_elements = AddInstruction(
641 new(zone()) HArgumentsElements(false)); 641 new(zone()) HArgumentsElements(false));
642 HInstruction* argument = AddInstruction(new(zone()) HAccessArgumentsAt( 642 HInstruction* argument = AddInstruction(new(zone()) HAccessArgumentsAt(
643 argument_elements, length, key)); 643 argument_elements, length, key));
644 644
645 // Checks to prevent incompatible stores
646 if (IsFastSmiElementsKind(kind)) {
647 AddInstruction(new(zone()) HCheckSmi(argument));
648 }
649
650 AddInstruction(new(zone()) HStoreKeyed(elements, key, argument, kind)); 645 AddInstruction(new(zone()) HStoreKeyed(elements, key, argument, kind));
651 builder.EndBody(); 646 builder.EndBody();
652 return new_object; 647 return new_object;
653 } 648 }
654 649
655 650
656 Handle<Code> ArrayNArgumentsConstructorStub::GenerateCode() { 651 Handle<Code> ArrayNArgumentsConstructorStub::GenerateCode() {
657 return DoGenerateCode(this); 652 return DoGenerateCode(this);
658 } 653 }
659 654
(...skipping 17 matching lines...) Expand all
677 ? graph()->GetConstant1() 672 ? graph()->GetConstant1()
678 : graph()->GetConstantUndefined(); 673 : graph()->GetConstantUndefined();
679 } 674 }
680 675
681 676
682 Handle<Code> CompareNilICStub::GenerateCode() { 677 Handle<Code> CompareNilICStub::GenerateCode() {
683 return DoGenerateCode(this); 678 return DoGenerateCode(this);
684 } 679 }
685 680
686 } } // namespace v8::internal 681 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698