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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/arm/lithium-arm.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 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 class LSmiUntag: public LTemplateInstruction<1, 1, 0> { 2115 class LSmiUntag: public LTemplateInstruction<1, 1, 0> {
2116 public: 2116 public:
2117 LSmiUntag(LOperand* value, bool needs_check) 2117 LSmiUntag(LOperand* value, bool needs_check)
2118 : needs_check_(needs_check) { 2118 : needs_check_(needs_check) {
2119 inputs_[0] = value; 2119 inputs_[0] = value;
2120 } 2120 }
2121 2121
2122 LOperand* value() { return inputs_[0]; } 2122 LOperand* value() { return inputs_[0]; }
2123 bool needs_check() const { return needs_check_; } 2123 bool needs_check() const { return needs_check_; }
2124 2124
2125 DECLARE_HYDROGEN_ACCESSOR(Change);
2126 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag") 2125 DECLARE_CONCRETE_INSTRUCTION(SmiUntag, "smi-untag")
2127 2126
2128 private: 2127 private:
2129 bool needs_check_; 2128 bool needs_check_;
2130 }; 2129 };
2131 2130
2132 2131
2133 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> { 2132 class LStoreNamedField: public LTemplateInstruction<0, 2, 1> {
2134 public: 2133 public:
2135 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) { 2134 LStoreNamedField(LOperand* object, LOperand* value, LOperand* temp) {
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 2867
2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2870 }; 2869 };
2871 2870
2872 #undef DECLARE_HYDROGEN_ACCESSOR 2871 #undef DECLARE_HYDROGEN_ACCESSOR
2873 #undef DECLARE_CONCRETE_INSTRUCTION 2872 #undef DECLARE_CONCRETE_INSTRUCTION
2874 2873
2875 } } // namespace v8::internal 2874 } } // namespace v8::internal
2876 2875
2877 #endif // V8_ARM_LITHIUM_ARM_H_ 2876 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698