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

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

Issue 1304633002: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Add MIPS/MIPS64 ports. Created 5 years, 4 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/ia32/interface-descriptors-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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_IA32_LITHIUM_CODEGEN_IA32_H_ 5 #ifndef V8_IA32_LITHIUM_CODEGEN_IA32_H_
6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_ 6 #define V8_IA32_LITHIUM_CODEGEN_IA32_H_
7 7
8 #include "src/ia32/lithium-ia32.h" 8 #include "src/ia32/lithium-ia32.h"
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 LOperand* temp, 97 LOperand* temp,
98 IntegerSignedness signedness); 98 IntegerSignedness signedness);
99 99
100 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done); 100 void DoDeferredTaggedToI(LTaggedToI* instr, Label* done);
101 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); 101 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr);
102 void DoDeferredStackCheck(LStackCheck* instr); 102 void DoDeferredStackCheck(LStackCheck* instr);
103 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr); 103 void DoDeferredMaybeGrowElements(LMaybeGrowElements* instr);
104 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 104 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
105 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 105 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
106 void DoDeferredAllocate(LAllocate* instr); 106 void DoDeferredAllocate(LAllocate* instr);
107 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
108 Label* map_check);
109 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object); 107 void DoDeferredInstanceMigration(LCheckMaps* instr, Register object);
110 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr, 108 void DoDeferredLoadMutableDouble(LLoadFieldByIndex* instr,
111 Register object, 109 Register object,
112 Register index); 110 Register index);
113 111
114 // Parallel move support. 112 // Parallel move support.
115 void DoParallelMove(LParallelMove* move); 113 void DoParallelMove(LParallelMove* move);
116 void DoGap(LGap* instr); 114 void DoGap(LGap* instr);
117 115
118 // Emit frame translation commands for an environment. 116 // Emit frame translation commands for an environment.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 Safepoint::DeoptMode mode); 251 Safepoint::DeoptMode mode);
254 252
255 void RecordAndWritePosition(int position) override; 253 void RecordAndWritePosition(int position) override;
256 254
257 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 255 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
258 void EmitGoto(int block); 256 void EmitGoto(int block);
259 257
260 // EmitBranch expects to be the last instruction of a block. 258 // EmitBranch expects to be the last instruction of a block.
261 template<class InstrType> 259 template<class InstrType>
262 void EmitBranch(InstrType instr, Condition cc); 260 void EmitBranch(InstrType instr, Condition cc);
263 template<class InstrType> 261 template <class InstrType>
262 void EmitTrueBranch(InstrType instr, Condition cc);
263 template <class InstrType>
264 void EmitFalseBranch(InstrType instr, Condition cc); 264 void EmitFalseBranch(InstrType instr, Condition cc);
265 void EmitNumberUntagD(LNumberUntagD* instr, Register input, Register temp, 265 void EmitNumberUntagD(LNumberUntagD* instr, Register input, Register temp,
266 XMMRegister result, NumberUntagDMode mode); 266 XMMRegister result, NumberUntagDMode mode);
267 267
268 // Emits optimized code for typeof x == "y". Modifies input register. 268 // Emits optimized code for typeof x == "y". Modifies input register.
269 // Returns the condition on which a final split to 269 // Returns the condition on which a final split to
270 // true and false label should be made, to optimize fallthrough. 270 // true and false label should be made, to optimize fallthrough.
271 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); 271 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input);
272 272
273 // Emits optimized code for %_IsObject(x). Preserves input register. 273 // Emits optimized code for %_IsObject(x). Preserves input register.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 Label entry_; 402 Label entry_;
403 Label exit_; 403 Label exit_;
404 Label* external_exit_; 404 Label* external_exit_;
405 Label done_; 405 Label done_;
406 int instruction_index_; 406 int instruction_index_;
407 }; 407 };
408 408
409 } } // namespace v8::internal 409 } } // namespace v8::internal
410 410
411 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 411 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698