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

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

Issue 1815203002: ES6: Faster implementation of OrdinaryHasInstance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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.cc ('k') | src/ia32/builtins-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_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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; 1014 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {};
1015 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; 1015 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {};
1016 1016
1017 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); 1017 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements);
1018 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); 1018 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub);
1019 }; 1019 };
1020 1020
1021 1021
1022 class InstanceOfStub final : public PlatformCodeStub { 1022 class InstanceOfStub final : public PlatformCodeStub {
1023 public: 1023 public:
1024 explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 1024 explicit InstanceOfStub(Isolate* isolate, bool es6_instanceof = false)
1025 : PlatformCodeStub(isolate) {
1026 minor_key_ = ES6_InstanceOf::encode(es6_instanceof);
1027 }
1028
1029 bool is_es6_instanceof() const { return ES6_InstanceOf::decode(minor_key_); }
1025 1030
1026 private: 1031 private:
1032 class ES6_InstanceOf : public BitField<bool, 0, 1> {};
1033
1027 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); 1034 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf);
1028 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); 1035 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub);
1029 }; 1036 };
1030 1037
1031 1038
1032 enum AllocationSiteOverrideMode { 1039 enum AllocationSiteOverrideMode {
1033 DONT_OVERRIDE, 1040 DONT_OVERRIDE,
1034 DISABLE_ALLOCATION_SITES, 1041 DISABLE_ALLOCATION_SITES,
1035 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES 1042 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES
1036 }; 1043 };
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
2978 #undef DEFINE_HYDROGEN_CODE_STUB 2985 #undef DEFINE_HYDROGEN_CODE_STUB
2979 #undef DEFINE_CODE_STUB 2986 #undef DEFINE_CODE_STUB
2980 #undef DEFINE_CODE_STUB_BASE 2987 #undef DEFINE_CODE_STUB_BASE
2981 2988
2982 extern Representation RepresentationFromType(Type* type); 2989 extern Representation RepresentationFromType(Type* type);
2983 2990
2984 } // namespace internal 2991 } // namespace internal
2985 } // namespace v8 2992 } // namespace v8
2986 2993
2987 #endif // V8_CODE_STUBS_H_ 2994 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698