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

Side by Side Diff: src/ia32/codegen-ia32.cc

Issue 1996006: Remove unused function in ia32 code generator (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/ia32/codegen-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } else { 822 } else {
823 // Anything else is a runtime error. 823 // Anything else is a runtime error.
824 Load(e); 824 Load(e);
825 frame_->CallRuntime(Runtime::kThrowReferenceError, 1); 825 frame_->CallRuntime(Runtime::kThrowReferenceError, 1);
826 } 826 }
827 827
828 in_spilled_code_ = was_in_spilled_code; 828 in_spilled_code_ = was_in_spilled_code;
829 } 829 }
830 830
831 831
832 void CodeGenerator::UnloadReference(Reference* ref) {
833 // Pop a reference from the stack while preserving TOS.
834 Comment cmnt(masm_, "[ UnloadReference");
835 frame_->Nip(ref->size());
836 ref->set_unloaded();
837 }
838
839
840 // ECMA-262, section 9.2, page 30: ToBoolean(). Pop the top of stack and 832 // ECMA-262, section 9.2, page 30: ToBoolean(). Pop the top of stack and
841 // convert it to a boolean in the condition code register or jump to 833 // convert it to a boolean in the condition code register or jump to
842 // 'false_target'/'true_target' as appropriate. 834 // 'false_target'/'true_target' as appropriate.
843 void CodeGenerator::ToBoolean(ControlDestination* dest) { 835 void CodeGenerator::ToBoolean(ControlDestination* dest) {
844 Comment cmnt(masm_, "[ ToBoolean"); 836 Comment cmnt(masm_, "[ ToBoolean");
845 837
846 // The value to convert should be popped from the frame. 838 // The value to convert should be popped from the frame.
847 Result value = frame_->Pop(); 839 Result value = frame_->Pop();
848 value.ToRegister(); 840 value.ToRegister();
849 841
(...skipping 12293 matching lines...) Expand 10 before | Expand all | Expand 10 after
13143 13135
13144 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) 13136 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater)
13145 // tagged as a small integer. 13137 // tagged as a small integer.
13146 __ bind(&runtime); 13138 __ bind(&runtime);
13147 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); 13139 __ TailCallRuntime(Runtime::kStringCompare, 2, 1);
13148 } 13140 }
13149 13141
13150 #undef __ 13142 #undef __
13151 13143
13152 } } // namespace v8::internal 13144 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698