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

Side by Side Diff: src/code-stubs.h

Issue 1328963004: Revert of [builtins] Unify the various versions of [[Call]] with a Call builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/builtins.h ('k') | src/contexts.h » ('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_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 // Parameters accessed via CodeStubGraphBuilder::GetParameter() 1946 // Parameters accessed via CodeStubGraphBuilder::GetParameter()
1947 static const int kLength = 0; 1947 static const int kLength = 0;
1948 static const int kIndex = 1; 1948 static const int kIndex = 1;
1949 static const int kInput = 2; 1949 static const int kInput = 2;
1950 1950
1951 DEFINE_CALL_INTERFACE_DESCRIPTOR(RegExpConstructResult); 1951 DEFINE_CALL_INTERFACE_DESCRIPTOR(RegExpConstructResult);
1952 DEFINE_HYDROGEN_CODE_STUB(RegExpConstructResult, HydrogenCodeStub); 1952 DEFINE_HYDROGEN_CODE_STUB(RegExpConstructResult, HydrogenCodeStub);
1953 }; 1953 };
1954 1954
1955 1955
1956 // TODO(bmeurer): Deprecate the CallFunctionStub in favor of the more general
1957 // Invoke family of builtins.
1958 class CallFunctionStub: public PlatformCodeStub { 1956 class CallFunctionStub: public PlatformCodeStub {
1959 public: 1957 public:
1960 CallFunctionStub(Isolate* isolate, int argc, CallFunctionFlags flags) 1958 CallFunctionStub(Isolate* isolate, int argc, CallFunctionFlags flags)
1961 : PlatformCodeStub(isolate) { 1959 : PlatformCodeStub(isolate) {
1962 DCHECK(argc >= 0 && argc <= Code::kMaxArguments); 1960 DCHECK(argc >= 0 && argc <= Code::kMaxArguments);
1963 minor_key_ = ArgcBits::encode(argc) | FlagBits::encode(flags); 1961 minor_key_ = ArgcBits::encode(argc) | FlagBits::encode(flags);
1964 } 1962 }
1965 1963
1966 private: 1964 private:
1967 int argc() const { return ArgcBits::decode(minor_key_); } 1965 int argc() const { return ArgcBits::decode(minor_key_); }
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3098 #undef DEFINE_PLATFORM_CODE_STUB 3096 #undef DEFINE_PLATFORM_CODE_STUB
3099 #undef DEFINE_HANDLER_CODE_STUB 3097 #undef DEFINE_HANDLER_CODE_STUB
3100 #undef DEFINE_HYDROGEN_CODE_STUB 3098 #undef DEFINE_HYDROGEN_CODE_STUB
3101 #undef DEFINE_CODE_STUB 3099 #undef DEFINE_CODE_STUB
3102 #undef DEFINE_CODE_STUB_BASE 3100 #undef DEFINE_CODE_STUB_BASE
3103 3101
3104 extern Representation RepresentationFromType(Type* type); 3102 extern Representation RepresentationFromType(Type* type);
3105 } } // namespace v8::internal 3103 } } // namespace v8::internal
3106 3104
3107 #endif // V8_CODE_STUBS_H_ 3105 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698