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

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

Issue 508643002: Vector-ic project, current state (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added platform dependent version of dispatchers. Created 6 years 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/code-stubs-hydrogen.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_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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 V(MegamorphicLoad) \ 75 V(MegamorphicLoad) \
76 V(NameDictionaryLookup) \ 76 V(NameDictionaryLookup) \
77 V(NumberToString) \ 77 V(NumberToString) \
78 V(RegExpConstructResult) \ 78 V(RegExpConstructResult) \
79 V(StoreFastElement) \ 79 V(StoreFastElement) \
80 V(StoreScriptContextField) \ 80 V(StoreScriptContextField) \
81 V(StringAdd) \ 81 V(StringAdd) \
82 V(ToBoolean) \ 82 V(ToBoolean) \
83 V(TransitionElementsKind) \ 83 V(TransitionElementsKind) \
84 V(VectorKeyedLoad) \ 84 V(VectorKeyedLoad) \
85 V(VectorRawKeyedLoad) \
85 V(VectorLoad) \ 86 V(VectorLoad) \
87 V(VectorRawLoad) \
86 /* IC Handler stubs */ \ 88 /* IC Handler stubs */ \
87 V(LoadConstant) \ 89 V(LoadConstant) \
88 V(LoadField) \ 90 V(LoadField) \
89 V(KeyedLoadSloppyArguments) \ 91 V(KeyedLoadSloppyArguments) \
90 V(StoreField) \ 92 V(StoreField) \
91 V(StoreGlobal) \ 93 V(StoreGlobal) \
92 V(StoreTransition) \ 94 V(StoreTransition) \
93 V(StringLength) 95 V(StringLength)
94 96
95 // List of code stubs only used on ARM 32 bits platforms. 97 // List of code stubs only used on ARM 32 bits platforms.
(...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 } 1949 }
1948 1950
1949 private: 1951 private:
1950 LoadICState state() const { return LoadICState(GetExtraICState()); } 1952 LoadICState state() const { return LoadICState(GetExtraICState()); }
1951 1953
1952 DEFINE_CALL_INTERFACE_DESCRIPTOR(VectorLoadIC); 1954 DEFINE_CALL_INTERFACE_DESCRIPTOR(VectorLoadIC);
1953 DEFINE_HYDROGEN_CODE_STUB(VectorLoad, HydrogenCodeStub); 1955 DEFINE_HYDROGEN_CODE_STUB(VectorLoad, HydrogenCodeStub);
1954 }; 1956 };
1955 1957
1956 1958
1959 class VectorRawLoadStub : public PlatformCodeStub {
1960 public:
1961 explicit VectorRawLoadStub(Isolate* isolate, const LoadICState& state)
1962 : PlatformCodeStub(isolate) {
1963 minor_key_ = state.GetExtraICState();
1964 }
1965
1966 virtual Code::Kind GetCodeKind() const OVERRIDE { return Code::LOAD_IC; }
1967
1968 virtual InlineCacheState GetICState() const FINAL OVERRIDE { return DEFAULT; }
1969
1970 virtual ExtraICState GetExtraICState() const FINAL OVERRIDE {
1971 return static_cast<ExtraICState>(minor_key_);
1972 }
1973
1974 DEFINE_CALL_INTERFACE_DESCRIPTOR(VectorLoadIC);
1975 DEFINE_PLATFORM_CODE_STUB(VectorRawLoad, PlatformCodeStub);
1976 };
1977
1978
1957 class VectorKeyedLoadStub : public VectorLoadStub { 1979 class VectorKeyedLoadStub : public VectorLoadStub {
1958 public: 1980 public:
1959 explicit VectorKeyedLoadStub(Isolate* isolate) 1981 explicit VectorKeyedLoadStub(Isolate* isolate)
1960 : VectorLoadStub(isolate, LoadICState(0)) {} 1982 : VectorLoadStub(isolate, LoadICState(0)) {}
1961 1983
1962 virtual Code::Kind GetCodeKind() const OVERRIDE { 1984 virtual Code::Kind GetCodeKind() const OVERRIDE {
1963 return Code::KEYED_LOAD_IC; 1985 return Code::KEYED_LOAD_IC;
1964 } 1986 }
1965 1987
1966 DEFINE_CALL_INTERFACE_DESCRIPTOR(VectorLoadIC); 1988 DEFINE_CALL_INTERFACE_DESCRIPTOR(VectorLoadIC);
1967 DEFINE_HYDROGEN_CODE_STUB(VectorKeyedLoad, VectorLoadStub); 1989 DEFINE_HYDROGEN_CODE_STUB(VectorKeyedLoad, VectorLoadStub);
1968 }; 1990 };
1969 1991
1970 1992
1993 class VectorRawKeyedLoadStub : public PlatformCodeStub {
1994 public:
1995 explicit VectorRawKeyedLoadStub(Isolate* isolate)
1996 : PlatformCodeStub(isolate) {}
1997
1998 virtual Code::Kind GetCodeKind() const OVERRIDE {
1999 return Code::KEYED_LOAD_IC;
2000 }
2001
2002 virtual InlineCacheState GetICState() const FINAL OVERRIDE { return DEFAULT; }
2003
2004 DEFINE_CALL_INTERFACE_DESCRIPTOR(VectorLoadIC);
2005 DEFINE_PLATFORM_CODE_STUB(VectorRawKeyedLoad, PlatformCodeStub);
2006 };
2007
2008
1971 class DoubleToIStub : public PlatformCodeStub { 2009 class DoubleToIStub : public PlatformCodeStub {
1972 public: 2010 public:
1973 DoubleToIStub(Isolate* isolate, Register source, Register destination, 2011 DoubleToIStub(Isolate* isolate, Register source, Register destination,
1974 int offset, bool is_truncating, bool skip_fastpath = false) 2012 int offset, bool is_truncating, bool skip_fastpath = false)
1975 : PlatformCodeStub(isolate) { 2013 : PlatformCodeStub(isolate) {
1976 minor_key_ = SourceRegisterBits::encode(source.code()) | 2014 minor_key_ = SourceRegisterBits::encode(source.code()) |
1977 DestinationRegisterBits::encode(destination.code()) | 2015 DestinationRegisterBits::encode(destination.code()) |
1978 OffsetBits::encode(offset) | 2016 OffsetBits::encode(offset) |
1979 IsTruncatingBits::encode(is_truncating) | 2017 IsTruncatingBits::encode(is_truncating) |
1980 SkipFastPathBits::encode(skip_fastpath) | 2018 SkipFastPathBits::encode(skip_fastpath) |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2607 2645
2608 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 2646 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
2609 #undef DEFINE_PLATFORM_CODE_STUB 2647 #undef DEFINE_PLATFORM_CODE_STUB
2610 #undef DEFINE_HANDLER_CODE_STUB 2648 #undef DEFINE_HANDLER_CODE_STUB
2611 #undef DEFINE_HYDROGEN_CODE_STUB 2649 #undef DEFINE_HYDROGEN_CODE_STUB
2612 #undef DEFINE_CODE_STUB 2650 #undef DEFINE_CODE_STUB
2613 #undef DEFINE_CODE_STUB_BASE 2651 #undef DEFINE_CODE_STUB_BASE
2614 } } // namespace v8::internal 2652 } } // namespace v8::internal
2615 2653
2616 #endif // V8_CODE_STUBS_H_ 2654 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698