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

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 2343633002: [interpreter] Add a fast path for dynamic local load (Closed)
Patch Set: Fix extension slot word size in equality test Created 4 years, 3 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/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 5fc778d72476b4f612e555ecd2650ffe7ccd6531..fe334e16412933e6156099538a84c4139f128701 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -295,6 +295,18 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::LoadLookupSlot(
return *this;
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::LoadLookupContextSlot(
+ const Handle<String> name, TypeofMode typeof_mode, int slot_index,
+ int depth) {
+ Bytecode bytecode = (typeof_mode == INSIDE_TYPEOF)
+ ? Bytecode::kLdaLookupContextSlotInsideTypeof
+ : Bytecode::kLdaLookupContextSlot;
+ size_t name_index = GetConstantPoolEntry(name);
+ Output(bytecode, UnsignedOperand(name_index), UnsignedOperand(slot_index),
+ UnsignedOperand(depth));
+ return *this;
+}
+
BytecodeArrayBuilder& BytecodeArrayBuilder::StoreLookupSlot(
const Handle<String> name, LanguageMode language_mode) {
Bytecode bytecode = BytecodeForStoreLookupSlot(language_mode);
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698