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

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

Issue 1318663003: X87: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/x87/interface-descriptors-x87.cc ('k') | src/x87/lithium-codegen-x87.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_X87_LITHIUM_CODEGEN_X87_H_ 5 #ifndef V8_X87_LITHIUM_CODEGEN_X87_H_
6 #define V8_X87_LITHIUM_CODEGEN_X87_H_ 6 #define V8_X87_LITHIUM_CODEGEN_X87_H_
7 7
8 #include <map> 8 #include <map>
9 #include "src/x87/lithium-x87.h" 9 #include "src/x87/lithium-x87.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 LOperand* temp, 131 LOperand* temp,
132 IntegerSignedness signedness); 132 IntegerSignedness signedness);
133 133
134 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); 134 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done);
135 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); 135 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr);
136 void DoDeferredStackCheck(LStackCheck* instr); 136 void DoDeferredStackCheck(LStackCheck* instr);
137 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); 137 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr);
138 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 138 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
139 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 139 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
140 void DoDeferredAllocate(LAllocate* instr); 140 void DoDeferredAllocate(LAllocate* instr);
141 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
142 Label* map_check);
143 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); 141 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object);
144 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, 142 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr,
145 Register object, 143 Register object,
146 Register index); 144 Register index);
147 145
148 // Parallel move support. 146 // Parallel move support.
149 void DoParallelMove(LParallelMove* move); 147 void DoParallelMove(LParallelMove* move);
150 void DoGap(LGap* instr); 148 void DoGap(LGap* instr);
151 149
152 // Emit frame translation commands for an environment. 150 // Emit frame translation commands for an environment.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 Safepoint::DeoptMode mode); 278 Safepoint::DeoptMode mode);
281 279
282 void RecordAndWritePosition(int position) override; 280 void RecordAndWritePosition(int position) override;
283 281
284 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 282 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
285 void EmitGoto(int block); 283 void EmitGoto(int block);
286 284
287 // EmitBranch expects to be the last instruction of a block. 285 // EmitBranch expects to be the last instruction of a block.
288 template<class InstrType> 286 template<class InstrType>
289 void EmitBranch(InstrType instr, Condition cc); 287 void EmitBranch(InstrType instr, Condition cc);
290 template<class InstrType> 288 template <class InstrType>
289 void EmitTrueBranch(InstrType instr, Condition cc);
290 template <class InstrType>
291 void EmitFalseBranch(InstrType instr, Condition cc); 291 void EmitFalseBranch(InstrType instr, Condition cc);
292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input, 292 void EmitNumberUntagDNoSSE2(LNumberUntagD* instr, Register input,
293 Register temp, X87Register res_reg, 293 Register temp, X87Register res_reg,
294 NumberUntagDMode mode); 294 NumberUntagDMode mode);
295 295
296 // Emits optimized code for typeof x == "y". Modifies input register. 296 // Emits optimized code for typeof x == "y". Modifies input register.
297 // Returns the condition on which a final split to 297 // Returns the condition on which a final split to
298 // true and false label should be made, to optimize fallthrough. 298 // true and false label should be made, to optimize fallthrough.
299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); 299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input);
300 300
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 Label exit_; 503 Label exit_;
504 Label* external_exit_; 504 Label* external_exit_;
505 Label done_; 505 Label done_;
506 int instruction_index_; 506 int instruction_index_;
507 LCodeGen::X87Stack x87_stack_; 507 LCodeGen::X87Stack x87_stack_;
508 }; 508 };
509 509
510 } } // namespace v8::internal 510 } } // namespace v8::internal
511 511
512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_ 512 #endif // V8_X87_LITHIUM_CODEGEN_X87_H_
OLDNEW
« no previous file with comments | « src/x87/interface-descriptors-x87.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698