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

Unified Diff: src/code-stubs.h

Issue 2412613004: [stubs] Remove unused StoreGlobalViaContextStub. (Closed)
Patch Set: Created 4 years, 2 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/arm64/interface-descriptors-arm64.cc ('k') | src/ia32/code-stubs-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 40155c75ecc9368d947bd356b9fd4f775b3dda0b..aa519d59cc10714f9b12e85fc36649a9bd10f578 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -84,7 +84,6 @@ class ObjectLiteral;
V(ToBooleanIC) \
V(RegExpConstructResult) \
V(TransitionElementsKind) \
- V(StoreGlobalViaContext) \
/* --- TurboFanCodeStubs --- */ \
V(AllocateHeapNumber) \
V(AllocateFloat32x4) \
@@ -1484,33 +1483,6 @@ class StoreGlobalStub : public TurboFanCodeStub {
DEFINE_TURBOFAN_CODE_STUB(StoreGlobal, TurboFanCodeStub);
};
-// TODO(ishell): remove, once StoreGlobalIC is implemented.
-class StoreGlobalViaContextStub final : public PlatformCodeStub {
- public:
- static const int kMaximumDepth = 15;
-
- StoreGlobalViaContextStub(Isolate* isolate, int depth,
- LanguageMode language_mode)
- : PlatformCodeStub(isolate) {
- minor_key_ =
- DepthBits::encode(depth) | LanguageModeBits::encode(language_mode);
- }
-
- int depth() const { return DepthBits::decode(minor_key_); }
- LanguageMode language_mode() const {
- return LanguageModeBits::decode(minor_key_);
- }
-
- private:
- class DepthBits : public BitField<int, 0, 4> {};
- STATIC_ASSERT(DepthBits::kMax == kMaximumDepth);
- class LanguageModeBits : public BitField<LanguageMode, 4, 1> {};
- STATIC_ASSERT(LANGUAGE_END == 2);
-
- DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreGlobalViaContext);
- DEFINE_PLATFORM_CODE_STUB(StoreGlobalViaContext, PlatformCodeStub);
-};
-
class CallApiCallbackStub : public PlatformCodeStub {
public:
static const int kArgBits = 3;
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698