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

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

Issue 23068038: Fix phis for non-sse2 double values (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comment & rebase 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/ia32/lithium-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 // 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 V(CheckMaps) \ 66 V(CheckMaps) \
67 V(CheckMapValue) \ 67 V(CheckMapValue) \
68 V(CheckNonSmi) \ 68 V(CheckNonSmi) \
69 V(CheckSmi) \ 69 V(CheckSmi) \
70 V(CheckValue) \ 70 V(CheckValue) \
71 V(ClampDToUint8) \ 71 V(ClampDToUint8) \
72 V(ClampIToUint8) \ 72 V(ClampIToUint8) \
73 V(ClampTToUint8) \ 73 V(ClampTToUint8) \
74 V(ClampTToUint8NoSSE2) \ 74 V(ClampTToUint8NoSSE2) \
75 V(ClassOfTestAndBranch) \ 75 V(ClassOfTestAndBranch) \
76 V(ClobberDoubles) \
76 V(CompareNumericAndBranch) \ 77 V(CompareNumericAndBranch) \
77 V(CmpObjectEqAndBranch) \ 78 V(CmpObjectEqAndBranch) \
78 V(CmpHoleAndBranch) \ 79 V(CmpHoleAndBranch) \
79 V(CmpMapAndBranch) \ 80 V(CmpMapAndBranch) \
80 V(CmpT) \ 81 V(CmpT) \
81 V(ConstantD) \ 82 V(ConstantD) \
82 V(ConstantE) \ 83 V(ConstantE) \
83 V(ConstantI) \ 84 V(ConstantI) \
84 V(ConstantS) \ 85 V(ConstantS) \
85 V(ConstantT) \ 86 V(ConstantT) \
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 explicit LInstructionGap(HBasicBlock* block) : LGap(block) { } 400 explicit LInstructionGap(HBasicBlock* block) : LGap(block) { }
400 401
401 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 402 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
402 return !IsRedundant(); 403 return !IsRedundant();
403 } 404 }
404 405
405 DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap") 406 DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap")
406 }; 407 };
407 408
408 409
410 class LClobberDoubles V8_FINAL : public LTemplateInstruction<0, 0, 0> {
411 public:
412 LClobberDoubles() { ASSERT(!CpuFeatures::IsSafeForSnapshot(SSE2); }
413
414 virtual bool ClobbersDoubleRegisters() const { return true; }
415
416 DECLARE_CONCRETE_INSTRUCTION(ClobberDoubles, "clobber-d")
417 };
418
419
409 class LGoto V8_FINAL : public LTemplateInstruction<0, 0, 0> { 420 class LGoto V8_FINAL : public LTemplateInstruction<0, 0, 0> {
410 public: 421 public:
411 explicit LGoto(int block_id) : block_id_(block_id) { } 422 explicit LGoto(HBasicBlock* block) : block_(block) { }
412 423
413 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE; 424 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE;
414 DECLARE_CONCRETE_INSTRUCTION(Goto, "goto") 425 DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
415 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 426 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
416 virtual bool IsControl() const V8_OVERRIDE { return true; } 427 virtual bool IsControl() const V8_OVERRIDE { return true; }
417 428
418 int block_id() const { return block_id_; } 429 int block_id() const { return block_->block_id(); }
430 virtual bool ClobbersDoubleRegisters() const { return false; }
431
432 bool jumps_to_join() const { return block_->predecessors()->length() > 1; }
419 433
420 private: 434 private:
421 int block_id_; 435 HBasicBlock* block_;
422 }; 436 };
423 437
424 438
425 class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> { 439 class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> {
426 public: 440 public:
427 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout") 441 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
428 }; 442 };
429 443
430 444
431 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> { 445 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> {
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2904 2918
2905 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2906 }; 2920 };
2907 2921
2908 #undef DECLARE_HYDROGEN_ACCESSOR 2922 #undef DECLARE_HYDROGEN_ACCESSOR
2909 #undef DECLARE_CONCRETE_INSTRUCTION 2923 #undef DECLARE_CONCRETE_INSTRUCTION
2910 2924
2911 } } // namespace v8::internal 2925 } } // namespace v8::internal
2912 2926
2913 #endif // V8_IA32_LITHIUM_IA32_H_ 2927 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698