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

Unified Diff: src/code-stubs.cc

Issue 1224793002: Loads and stores to global vars are now made via property cell shortcuts installed into parent scri… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 5 years, 5 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-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index bcc1fe88014d9bcd52a61df4bef62c1131e497a7..a1889ad5a9cf0f952dc215db00198f1e7d3501cb 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -19,6 +19,12 @@ namespace v8 {
namespace internal {
+RUNTIME_FUNCTION(UnexpectedStubMiss) {
+ FATAL("Unexpected deopt of a stub");
+ return Smi::FromInt(0);
+}
+
+
CodeStubDescriptor::CodeStubDescriptor(CodeStub* stub)
: call_descriptor_(stub->GetCallInterfaceDescriptor()),
stack_parameter_count_(no_reg),
@@ -720,6 +726,20 @@ void RegExpConstructResultStub::InitializeDescriptor(
}
+void LoadGlobalViaContextStub::InitializeDescriptor(
+ CodeStubDescriptor* descriptor) {
+ // Must never deoptimize.
+ descriptor->Initialize(FUNCTION_ADDR(UnexpectedStubMiss));
+}
+
+
+void StoreGlobalViaContextStub::InitializeDescriptor(
+ CodeStubDescriptor* descriptor) {
+ // Must never deoptimize.
+ descriptor->Initialize(FUNCTION_ADDR(UnexpectedStubMiss));
+}
+
+
void TransitionElementsKindStub::InitializeDescriptor(
CodeStubDescriptor* descriptor) {
descriptor->Initialize(
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698