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

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

Issue 23437028: Revert "Fix phis for non-sse2 double values" (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/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) \
77 V(CompareNumericAndBranch) \ 76 V(CompareNumericAndBranch) \
78 V(CmpObjectEqAndBranch) \ 77 V(CmpObjectEqAndBranch) \
79 V(CmpHoleAndBranch) \ 78 V(CmpHoleAndBranch) \
80 V(CmpMapAndBranch) \ 79 V(CmpMapAndBranch) \
81 V(CmpT) \ 80 V(CmpT) \
82 V(ConstantD) \ 81 V(ConstantD) \
83 V(ConstantE) \ 82 V(ConstantE) \
84 V(ConstantI) \ 83 V(ConstantI) \
85 V(ConstantS) \ 84 V(ConstantS) \
86 V(ConstantT) \ 85 V(ConstantT) \
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 explicit LInstructionGap(HBasicBlock* block) : LGap(block) { } 399 explicit LInstructionGap(HBasicBlock* block) : LGap(block) { }
401 400
402 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { 401 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE {
403 return !IsRedundant(); 402 return !IsRedundant();
404 } 403 }
405 404
406 DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap") 405 DECLARE_CONCRETE_INSTRUCTION(InstructionGap, "gap")
407 }; 406 };
408 407
409 408
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
420 class LGoto V8_FINAL : public LTemplateInstruction<0, 0, 0> { 409 class LGoto V8_FINAL : public LTemplateInstruction<0, 0, 0> {
421 public: 410 public:
422 explicit LGoto(HBasicBlock* block) : block_(block) { } 411 explicit LGoto(int block_id) : block_id_(block_id) { }
423 412
424 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE; 413 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE;
425 DECLARE_CONCRETE_INSTRUCTION(Goto, "goto") 414 DECLARE_CONCRETE_INSTRUCTION(Goto, "goto")
426 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 415 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
427 virtual bool IsControl() const V8_OVERRIDE { return true; } 416 virtual bool IsControl() const V8_OVERRIDE { return true; }
428 417
429 int block_id() const { return block_->block_id(); } 418 int block_id() const { return block_id_; }
430 virtual bool ClobbersDoubleRegisters() const { return false; }
431
432 bool jumps_to_join() const { return block_->predecessors()->length() > 1; }
433 419
434 private: 420 private:
435 HBasicBlock* block_; 421 int block_id_;
436 }; 422 };
437 423
438 424
439 class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> { 425 class LLazyBailout V8_FINAL : public LTemplateInstruction<0, 0, 0> {
440 public: 426 public:
441 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout") 427 DECLARE_CONCRETE_INSTRUCTION(LazyBailout, "lazy-bailout")
442 }; 428 };
443 429
444 430
445 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> { 431 class LDummyUse V8_FINAL : public LTemplateInstruction<1, 1, 0> {
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2918 2904
2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2905 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2920 }; 2906 };
2921 2907
2922 #undef DECLARE_HYDROGEN_ACCESSOR 2908 #undef DECLARE_HYDROGEN_ACCESSOR
2923 #undef DECLARE_CONCRETE_INSTRUCTION 2909 #undef DECLARE_CONCRETE_INSTRUCTION
2924 2910
2925 } } // namespace v8::internal 2911 } } // namespace v8::internal
2926 2912
2927 #endif // V8_IA32_LITHIUM_IA32_H_ 2913 #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