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

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

Issue 15821007: MIPS: Fix hole handling, and ensure smi representation is handled properly (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.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 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { 2062 class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
2063 public: 2063 public:
2064 LSmiUntag(LOperand* value, bool needs_check) 2064 LSmiUntag(LOperand* value, bool needs_check)
2065 : needs_check_(needs_check) { 2065 : needs_check_(needs_check) {
2066 inputs_[0] = value; 2066 inputs_[0] = value;
2067 } 2067 }
2068 2068
2069 LOperand* value() { return inputs_[0]; } 2069 LOperand* value() { return inputs_[0]; }
2070 bool needs_check() const { return needs_check_; } 2070 bool needs_check() const { return needs_check_; }
2071 2071
2072 DECLARE_HYDROGEN_ACCESSOR(Change);
2073 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") 2072 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
2074 2073
2075 private: 2074 private:
2076 bool needs_check_; 2075 bool needs_check_;
2077 }; 2076 };
2078 2077
2079 2078
2080 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { 2079 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> {
2081 public: 2080 public:
2082 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { 2081 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) {
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 2800
2802 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2803 }; 2802 };
2804 2803
2805 #undef DECLARE_HYDROGEN_ACCESSOR 2804 #undef DECLARE_HYDROGEN_ACCESSOR
2806 #undef DECLARE_CONCRETE_INSTRUCTION 2805 #undef DECLARE_CONCRETE_INSTRUCTION
2807 2806
2808 } } // namespace v8::internal 2807 } } // namespace v8::internal
2809 2808
2810 #endif // V8_MIPS_LITHIUM_MIPS_H_ 2809 #endif // V8_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698