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

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

Issue 1117011: Inline floating point compare... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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.h » ('j') | src/ia32/codegen-ia32.cc » ('J')
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 7141 matching lines...) Expand 10 before | Expand all | Expand 10 after
7152 } 7152 }
7153 default: return "CompareStub"; 7153 default: return "CompareStub";
7154 } 7154 }
7155 } 7155 }
7156 7156
7157 7157
7158 int CompareStub::MinorKey() { 7158 int CompareStub::MinorKey() {
7159 // Encode the three parameters in a unique 16 bit value. To avoid duplicate 7159 // Encode the three parameters in a unique 16 bit value. To avoid duplicate
7160 // stubs the never NaN NaN condition is only taken into account if the 7160 // stubs the never NaN NaN condition is only taken into account if the
7161 // condition is equals. 7161 // condition is equals.
7162 ASSERT((static_cast<unsigned>(cc_) >> 28) < (1 << 14)); 7162 ASSERT((static_cast<unsigned>(cc_) >> 28) < (1 << 13));
7163 return ConditionField::encode(static_cast<unsigned>(cc_) >> 28) 7163 return ConditionField::encode(static_cast<unsigned>(cc_) >> 28)
7164 | StrictField::encode(strict_) 7164 | StrictField::encode(strict_)
7165 | NeverNanNanField::encode(cc_ == eq ? never_nan_nan_ : false); 7165 | NeverNanNanField::encode(cc_ == eq ? never_nan_nan_ : false)
7166 | IncludeNumberCompareField::encode(include_number_compare_);
7166 } 7167 }
7167 7168
7168 7169
7169 void StringStubBase::GenerateCopyCharacters(MacroAssembler* masm, 7170 void StringStubBase::GenerateCopyCharacters(MacroAssembler* masm,
7170 Register dest, 7171 Register dest,
7171 Register src, 7172 Register src,
7172 Register count, 7173 Register count,
7173 Register scratch, 7174 Register scratch,
7174 bool ascii) { 7175 bool ascii) {
7175 Label loop; 7176 Label loop;
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
8041 8042
8042 // Just jump to runtime to add the two strings. 8043 // Just jump to runtime to add the two strings.
8043 __ bind(&string_add_runtime); 8044 __ bind(&string_add_runtime);
8044 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 8045 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
8045 } 8046 }
8046 8047
8047 8048
8048 #undef __ 8049 #undef __
8049 8050
8050 } } // namespace v8::internal 8051 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/codegen.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698