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

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

Issue 868453005: Continue learning for calls in optimized code when we have no type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@navier
Patch Set: Compile error fix. Created 5 years, 10 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 | « 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 // 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_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_ARM_LITHIUM_ARM_H_
6 #define V8_ARM_LITHIUM_ARM_H_ 6 #define V8_ARM_LITHIUM_ARM_H_
7 7
8 #include "src/hydrogen.h" 8 #include "src/hydrogen.h"
9 #include "src/lithium.h" 9 #include "src/lithium.h"
10 #include "src/lithium-allocator.h" 10 #include "src/lithium-allocator.h"
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 1932
1933 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function") 1933 DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke-function")
1934 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction) 1934 DECLARE_HYDROGEN_ACCESSOR(InvokeFunction)
1935 1935
1936 void PrintDataTo(StringStream* stream) OVERRIDE; 1936 void PrintDataTo(StringStream* stream) OVERRIDE;
1937 1937
1938 int arity() const { return hydrogen()->argument_count() - 1; } 1938 int arity() const { return hydrogen()->argument_count() - 1; }
1939 }; 1939 };
1940 1940
1941 1941
1942 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 0> { 1942 class LCallFunction FINAL : public LTemplateInstruction<1, 2, 2> {
1943 public: 1943 public:
1944 LCallFunction(LOperand* context, LOperand* function) { 1944 LCallFunction(LOperand* context, LOperand* function, LOperand* slot,
1945 LOperand* vector) {
1945 inputs_[0] = context; 1946 inputs_[0] = context;
1946 inputs_[1] = function; 1947 inputs_[1] = function;
1948 temps_[0] = slot;
1949 temps_[1] = vector;
1947 } 1950 }
1948 1951
1949 LOperand* context() { return inputs_[0]; } 1952 LOperand* context() { return inputs_[0]; }
1950 LOperand* function() { return inputs_[1]; } 1953 LOperand* function() { return inputs_[1]; }
1954 LOperand* temp_slot() { return temps_[0]; }
1955 LOperand* temp_vector() { return temps_[1]; }
1951 1956
1952 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") 1957 DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function")
1953 DECLARE_HYDROGEN_ACCESSOR(CallFunction) 1958 DECLARE_HYDROGEN_ACCESSOR(CallFunction)
1954 1959
1955 int arity() const { return hydrogen()->argument_count() - 1; } 1960 int arity() const { return hydrogen()->argument_count() - 1; }
1961 void PrintDataTo(StringStream* stream) OVERRIDE;
1956 }; 1962 };
1957 1963
1958 1964
1959 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> { 1965 class LCallNew FINAL : public LTemplateInstruction<1, 2, 0> {
1960 public: 1966 public:
1961 LCallNew(LOperand* context, LOperand* constructor) { 1967 LCallNew(LOperand* context, LOperand* constructor) {
1962 inputs_[0] = context; 1968 inputs_[0] = context;
1963 inputs_[1] = constructor; 1969 inputs_[1] = constructor;
1964 } 1970 }
1965 1971
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
2880 2886
2881 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2882 }; 2888 };
2883 2889
2884 #undef DECLARE_HYDROGEN_ACCESSOR 2890 #undef DECLARE_HYDROGEN_ACCESSOR
2885 #undef DECLARE_CONCRETE_INSTRUCTION 2891 #undef DECLARE_CONCRETE_INSTRUCTION
2886 2892
2887 } } // namespace v8::internal 2893 } } // namespace v8::internal
2888 2894
2889 #endif // V8_ARM_LITHIUM_ARM_H_ 2895 #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