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

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

Issue 1819813002: [es6] Faster implementation of OrdinaryHasInstance. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert flag-flip again. 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; 1016 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {};
1017 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; 1017 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {};
1018 1018
1019 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); 1019 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements);
1020 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); 1020 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub);
1021 }; 1021 };
1022 1022
1023 1023
1024 class InstanceOfStub final : public PlatformCodeStub { 1024 class InstanceOfStub final : public PlatformCodeStub {
1025 public: 1025 public:
1026 explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 1026 explicit InstanceOfStub(Isolate* isolate, bool es6_instanceof = false)
1027 : PlatformCodeStub(isolate) {
1028 minor_key_ = IsES6InstanceOfBits::encode(es6_instanceof);
1029 }
1030
1031 bool is_es6_instanceof() const {
1032 return IsES6InstanceOfBits::decode(minor_key_);
1033 }
1027 1034
1028 private: 1035 private:
1036 class IsES6InstanceOfBits : public BitField<bool, 0, 1> {};
1037
1029 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); 1038 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf);
1030 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); 1039 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub);
1031 }; 1040 };
1032 1041
1033 1042
1034 enum AllocationSiteOverrideMode { 1043 enum AllocationSiteOverrideMode {
1035 DONT_OVERRIDE, 1044 DONT_OVERRIDE,
1036 DISABLE_ALLOCATION_SITES, 1045 DISABLE_ALLOCATION_SITES,
1037 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES 1046 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES
1038 }; 1047 };
(...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2996 #undef DEFINE_HYDROGEN_CODE_STUB 3005 #undef DEFINE_HYDROGEN_CODE_STUB
2997 #undef DEFINE_CODE_STUB 3006 #undef DEFINE_CODE_STUB
2998 #undef DEFINE_CODE_STUB_BASE 3007 #undef DEFINE_CODE_STUB_BASE
2999 3008
3000 extern Representation RepresentationFromType(Type* type); 3009 extern Representation RepresentationFromType(Type* type);
3001 3010
3002 } // namespace internal 3011 } // namespace internal
3003 } // namespace v8 3012 } // namespace v8
3004 3013
3005 #endif // V8_CODE_STUBS_H_ 3014 #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