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

Side by Side Diff: src/x64/lithium-codegen-x64.h

Issue 24277002: Make the use of xmm0 as double scratch register explicit in ia32 and x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 bool is_aborted() const { return status_ == ABORTED; } 159 bool is_aborted() const { return status_ == ABORTED; }
160 160
161 StrictModeFlag strict_mode_flag() const { 161 StrictModeFlag strict_mode_flag() const {
162 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 162 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
163 } 163 }
164 164
165 LPlatformChunk* chunk() const { return chunk_; } 165 LPlatformChunk* chunk() const { return chunk_; }
166 Scope* scope() const { return scope_; } 166 Scope* scope() const { return scope_; }
167 HGraph* graph() const { return chunk()->graph(); } 167 HGraph* graph() const { return chunk()->graph(); }
168 168
169 XMMRegister double_scratch0() const { return xmm0; }
170
169 int GetNextEmittedBlock() const; 171 int GetNextEmittedBlock() const;
170 172
171 void EmitClassOfTest(Label* if_true, 173 void EmitClassOfTest(Label* if_true,
172 Label* if_false, 174 Label* if_false,
173 Handle<String> class_name, 175 Handle<String> class_name,
174 Register input, 176 Register input,
175 Register temporary, 177 Register temporary,
176 Register scratch); 178 Register scratch);
177 179
178 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 180 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 Label entry_; 443 Label entry_;
442 Label exit_; 444 Label exit_;
443 Label done_; 445 Label done_;
444 Label* external_exit_; 446 Label* external_exit_;
445 int instruction_index_; 447 int instruction_index_;
446 }; 448 };
447 449
448 } } // namespace v8::internal 450 } } // namespace v8::internal
449 451
450 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 452 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698