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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 2301883002: CallInterfaceDescriptor should use MachineType (Closed)
Patch Set: Remove unneeded zone in the isolate. Created 4 years, 3 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/code-stubs.cc ('k') | src/compiler/linkage.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 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/crankshaft/hydrogen.h" 10 #include "src/crankshaft/hydrogen.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual HValue* BuildCodeStub() = 0; 52 virtual HValue* BuildCodeStub() = 0;
53 int GetParameterCount() const { return descriptor_.GetParameterCount(); } 53 int GetParameterCount() const { return descriptor_.GetParameterCount(); }
54 int GetRegisterParameterCount() const { 54 int GetRegisterParameterCount() const {
55 return descriptor_.GetRegisterParameterCount(); 55 return descriptor_.GetRegisterParameterCount();
56 } 56 }
57 HParameter* GetParameter(int parameter) { 57 HParameter* GetParameter(int parameter) {
58 DCHECK(parameter < GetParameterCount()); 58 DCHECK(parameter < GetParameterCount());
59 return parameters_[parameter]; 59 return parameters_[parameter];
60 } 60 }
61 Representation GetParameterRepresentation(int parameter) { 61 Representation GetParameterRepresentation(int parameter) {
62 return RepresentationFromType(descriptor_.GetParameterType(parameter)); 62 return RepresentationFromMachineType(
63 descriptor_.GetParameterType(parameter));
63 } 64 }
64 bool IsParameterCountRegister(int index) const { 65 bool IsParameterCountRegister(int index) const {
65 return descriptor_.GetRegisterParameter(index) 66 return descriptor_.GetRegisterParameter(index)
66 .is(descriptor_.stack_parameter_count()); 67 .is(descriptor_.stack_parameter_count());
67 } 68 }
68 HValue* GetArgumentsLength() { 69 HValue* GetArgumentsLength() {
69 // This is initialized in BuildGraph() 70 // This is initialized in BuildGraph()
70 DCHECK(arguments_length_ != NULL); 71 DCHECK(arguments_length_ != NULL);
71 return arguments_length_; 72 return arguments_length_;
72 } 73 }
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1943 return Pop(); 1944 return Pop();
1944 } 1945 }
1945 1946
1946 1947
1947 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 1948 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
1948 return DoGenerateCode(this); 1949 return DoGenerateCode(this);
1949 } 1950 }
1950 1951
1951 } // namespace internal 1952 } // namespace internal
1952 } // namespace v8 1953 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698