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

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

Issue 2625873009: [ast] Remove heap accesses from AST numbering (Closed)
Patch Set: Fix GCMole failure Created 3 years, 11 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
Index: src/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index 652c32d35dbcc48b3696d5e828daa941b0537b3f..9743262b56a96a7334525e5c3d541bd41687cdb3 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -649,19 +649,14 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CreateRegExpLiteral(
}
BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArrayLiteral(
- Handle<ConstantElementsPair> constant_elements, int literal_index,
- int flags) {
- size_t constant_elements_entry = GetConstantPoolEntry(constant_elements);
- OutputCreateArrayLiteral(constant_elements_entry, literal_index, flags);
+ size_t entry, int literal_index, int flags) {
+ OutputCreateArrayLiteral(entry, literal_index, flags);
return *this;
}
BytecodeArrayBuilder& BytecodeArrayBuilder::CreateObjectLiteral(
- Handle<FixedArray> constant_properties, int literal_index, int flags,
- Register output) {
- size_t constant_properties_entry = GetConstantPoolEntry(constant_properties);
- OutputCreateObjectLiteral(constant_properties_entry, literal_index, flags,
- output);
+ size_t entry, int literal_index, int flags, Register output) {
+ OutputCreateObjectLiteral(entry, literal_index, flags, output);
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698