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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/ia32/builtins-ia32.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 83b559ff52f7652f3ad70eee33eae640b9fa22d2..854d9ac5966f78f36ee675eac0abda3b3490cc24 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1023,9 +1023,18 @@ class GrowArrayElementsStub : public HydrogenCodeStub {
class InstanceOfStub final : public PlatformCodeStub {
public:
- explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
+ 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);
};
« 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