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

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

Issue 2023763010: [x64] Make xmm0 allocatable and use xmm15 as scratch register instead. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/crankshaft/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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
7 7
8 8
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Declare methods that deal with the individual node types. 108 // Declare methods that deal with the individual node types.
109 #define DECLARE_DO(type) void Do##type(L##type* node); 109 #define DECLARE_DO(type) void Do##type(L##type* node);
110 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 110 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
111 #undef DECLARE_DO 111 #undef DECLARE_DO
112 112
113 private: 113 private:
114 LPlatformChunk* chunk() const { return chunk_; } 114 LPlatformChunk* chunk() const { return chunk_; }
115 Scope* scope() const { return scope_; } 115 Scope* scope() const { return scope_; }
116 HGraph* graph() const { return chunk()->graph(); } 116 HGraph* graph() const { return chunk()->graph(); }
117 117
118 XMMRegister double_scratch0() const { return xmm0; } 118 XMMRegister double_scratch0() const { return kScratchDoubleReg; }
119 119
120 void EmitClassOfTest(Label* if_true, 120 void EmitClassOfTest(Label* if_true,
121 Label* if_false, 121 Label* if_false,
122 Handle<String> class_name, 122 Handle<String> class_name,
123 Register input, 123 Register input,
124 Register temporary, 124 Register temporary,
125 Register scratch); 125 Register scratch);
126 126
127 bool HasAllocatedStackSlots() const { 127 bool HasAllocatedStackSlots() const {
128 return chunk()->HasAllocatedStackSlots(); 128 return chunk()->HasAllocatedStackSlots();
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 Label exit_; 379 Label exit_;
380 Label done_; 380 Label done_;
381 Label* external_exit_; 381 Label* external_exit_;
382 int instruction_index_; 382 int instruction_index_;
383 }; 383 };
384 384
385 } // namespace internal 385 } // namespace internal
386 } // namespace v8 386 } // namespace v8
387 387
388 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ 388 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698