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

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

Issue 16013003: 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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.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 2022 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { 2033 class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
2034 public: 2034 public:
2035 LSmiUntag(LOperand* value, bool needs_check) 2035 LSmiUntag(LOperand* value, bool needs_check)
2036 : needs_check_(needs_check) { 2036 : needs_check_(needs_check) {
2037 inputs_[0] = value; 2037 inputs_[0] = value;
2038 } 2038 }
2039 2039
2040 LOperand* value() { return inputs_[0]; } 2040 LOperand* value() { return inputs_[0]; }
2041 bool needs_check() const { return needs_check_; } 2041 bool needs_check() const { return needs_check_; }
2042 2042
2043 DECLARE_HYDROGEN_ACCESSOR(Change);
2044 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") 2043 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
2045 2044
2046 private: 2045 private:
2047 bool needs_check_; 2046 bool needs_check_;
2048 }; 2047 };
2049 2048
2050 2049
2051 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { 2050 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> {
2052 public: 2051 public:
2053 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { 2052 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) {
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 2755
2757 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2756 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2758 }; 2757 };
2759 2758
2760 #undef DECLARE_HYDROGEN_ACCESSOR 2759 #undef DECLARE_HYDROGEN_ACCESSOR
2761 #undef DECLARE_CONCRETE_INSTRUCTION 2760 #undef DECLARE_CONCRETE_INSTRUCTION
2762 2761
2763 } } // namespace v8::int 2762 } } // namespace v8::int
2764 2763
2765 #endif // V8_X64_LITHIUM_X64_H_ 2764 #endif // V8_X64_LITHIUM_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698