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

Unified Diff: src/code-stubs.h

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index a421b6117e9aa0cf3b0a87d8aca90ff6ad21ecd8..28e91205eeeb7d735c83521dbe609f050c02b954 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -31,7 +31,6 @@ namespace internal {
V(CompareIC) \
V(DoubleToI) \
V(FunctionPrototype) \
- V(InstanceOf) \
V(InternalArrayConstructor) \
V(JSEntry) \
V(KeyedLoadICTrampoline) \
@@ -121,6 +120,7 @@ namespace internal {
V(InternalArrayNoArgumentConstructor) \
V(Dec) \
V(FastCloneShallowObject) \
+ V(InstanceOf) \
V(LessThan) \
V(LessThanOrEqual) \
V(GreaterThan) \
@@ -781,6 +781,15 @@ class DecStub final : public TurboFanCodeStub {
DEFINE_TURBOFAN_CODE_STUB(Dec, TurboFanCodeStub);
};
+class InstanceOfStub final : public TurboFanCodeStub {
+ public:
+ explicit InstanceOfStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
+
+ private:
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare);
+ DEFINE_TURBOFAN_CODE_STUB(InstanceOf, TurboFanCodeStub);
+};
+
class LessThanStub final : public TurboFanCodeStub {
public:
explicit LessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {}
@@ -1238,24 +1247,6 @@ class FastArrayPushStub : public HydrogenCodeStub {
DEFINE_HYDROGEN_CODE_STUB(FastArrayPush, HydrogenCodeStub);
};
-class InstanceOfStub final : public PlatformCodeStub {
- public:
- explicit InstanceOfStub(Isolate* isolate, bool es6_instanceof = false)
- : PlatformCodeStub(isolate) {
- minor_key_ = IsES6InstanceOfBits::encode(es6_instanceof);
- }
-
- bool is_es6_instanceof() const {
- return IsES6InstanceOfBits::decode(minor_key_);
- }
-
- private:
- class IsES6InstanceOfBits : public BitField<bool, 0, 1> {};
-
- DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf);
- DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub);
-};
-
enum AllocationSiteOverrideMode {
DONT_OVERRIDE,
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698