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

Side by Side Diff: src/hydrogen-instructions.h

Issue 14698021: Merged r14638 into 3.17 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.17
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/version.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 5017 matching lines...) Expand 10 before | Expand all | Expand 10 after
5028 SetOperandAt(1, key); 5028 SetOperandAt(1, key);
5029 SetOperandAt(2, dependency != NULL ? dependency : obj); 5029 SetOperandAt(2, dependency != NULL ? dependency : obj);
5030 5030
5031 if (!is_external()) { 5031 if (!is_external()) {
5032 // I can detect the case between storing double (holey and fast) and 5032 // I can detect the case between storing double (holey and fast) and
5033 // smi/object by looking at elements_kind_. 5033 // smi/object by looking at elements_kind_.
5034 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || 5034 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) ||
5035 IsFastDoubleElementsKind(elements_kind)); 5035 IsFastDoubleElementsKind(elements_kind));
5036 5036
5037 if (IsFastSmiOrObjectElementsKind(elements_kind)) { 5037 if (IsFastSmiOrObjectElementsKind(elements_kind)) {
5038 if (IsFastSmiElementsKind(elements_kind)) { 5038 if (elements_kind == FAST_SMI_ELEMENTS) {
5039 set_type(HType::Smi()); 5039 set_type(HType::Smi());
5040 } 5040 }
5041 5041
5042 set_representation(Representation::Tagged()); 5042 set_representation(Representation::Tagged());
5043 SetGVNFlag(kDependsOnArrayElements); 5043 SetGVNFlag(kDependsOnArrayElements);
5044 } else { 5044 } else {
5045 set_representation(Representation::Double()); 5045 set_representation(Representation::Double());
5046 SetGVNFlag(kDependsOnDoubleArrayElements); 5046 SetGVNFlag(kDependsOnDoubleArrayElements);
5047 } 5047 }
5048 } else { 5048 } else {
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
6142 virtual bool IsDeletable() const { return true; } 6142 virtual bool IsDeletable() const { return true; }
6143 }; 6143 };
6144 6144
6145 6145
6146 #undef DECLARE_INSTRUCTION 6146 #undef DECLARE_INSTRUCTION
6147 #undef DECLARE_CONCRETE_INSTRUCTION 6147 #undef DECLARE_CONCRETE_INSTRUCTION
6148 6148
6149 } } // namespace v8::internal 6149 } } // namespace v8::internal
6150 6150
6151 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6151 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698