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

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

Issue 1197703002: Use big-boy Types to annotate interface descriptor parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Latest Created 5 years, 6 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
« no previous file with comments | « src/compiler/typer.cc ('k') | src/ia32/interface-descriptors-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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 2269
2270 int OperandCount() const final { return values_.length(); } 2270 int OperandCount() const final { return values_.length(); }
2271 HValue* OperandAt(int index) const final { return values_[index]; } 2271 HValue* OperandAt(int index) const final { return values_[index]; }
2272 2272
2273 Representation RequiredInputRepresentation(int index) final { 2273 Representation RequiredInputRepresentation(int index) final {
2274 if (index == 0) { 2274 if (index == 0) {
2275 return Representation::Tagged(); 2275 return Representation::Tagged();
2276 } else { 2276 } else {
2277 int par_index = index - 1; 2277 int par_index = index - 1;
2278 DCHECK(par_index < descriptor_.GetEnvironmentLength()); 2278 DCHECK(par_index < descriptor_.GetEnvironmentLength());
2279 return descriptor_.GetParameterRepresentation(par_index); 2279 return RepresentationFromType(descriptor_.GetParameterType(par_index));
2280 } 2280 }
2281 } 2281 }
2282 2282
2283 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor) 2283 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor)
2284 2284
2285 HType CalculateInferredType() final { return HType::Tagged(); } 2285 HType CalculateInferredType() final { return HType::Tagged(); }
2286 2286
2287 bool IsTailCall() const { return call_mode_ == TAIL_CALL; } 2287 bool IsTailCall() const { return call_mode_ == TAIL_CALL; }
2288 2288
2289 virtual int argument_count() const { 2289 virtual int argument_count() const {
(...skipping 5607 matching lines...) Expand 10 before | Expand all | Expand 10 after
7897 }; 7897 };
7898 7898
7899 7899
7900 7900
7901 #undef DECLARE_INSTRUCTION 7901 #undef DECLARE_INSTRUCTION
7902 #undef DECLARE_CONCRETE_INSTRUCTION 7902 #undef DECLARE_CONCRETE_INSTRUCTION
7903 7903
7904 } } // namespace v8::internal 7904 } } // namespace v8::internal
7905 7905
7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698