Index: test/unittests/interpreter/bytecode-array-builder-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-array-builder-unittest.cc b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
index 1624b5b38cfc65ee164538f271ed3e3c34ea0774..7bbef45ad34c6d6f429a799f0267063b24ffc8cf 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -71,8 +71,8 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
// Emit global load / store operations. |
Handle<String> name = factory->NewStringFromStaticChars("var_name"); |
- builder.LoadGlobal(name, 1, TypeofMode::NOT_INSIDE_TYPEOF) |
- .LoadGlobal(name, 1, TypeofMode::INSIDE_TYPEOF) |
+ builder.LoadGlobal(1, TypeofMode::NOT_INSIDE_TYPEOF) |
+ .LoadGlobal(1, TypeofMode::INSIDE_TYPEOF) |
.StoreGlobal(name, 1, LanguageMode::SLOPPY) |
.StoreGlobal(name, 1, LanguageMode::STRICT); |
@@ -266,14 +266,14 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
Handle<String> wide_name = factory->NewStringFromStaticChars("var_wide_name"); |
// Emit wide global load / store operations. |
- builder.LoadGlobal(name, 1024, TypeofMode::NOT_INSIDE_TYPEOF) |
- .LoadGlobal(name, 1024, TypeofMode::INSIDE_TYPEOF) |
- .LoadGlobal(name, 1024, TypeofMode::INSIDE_TYPEOF) |
+ builder.LoadGlobal(1024, TypeofMode::NOT_INSIDE_TYPEOF) |
+ .LoadGlobal(1024, TypeofMode::INSIDE_TYPEOF) |
+ .LoadGlobal(1024, TypeofMode::INSIDE_TYPEOF) |
.StoreGlobal(name, 1024, LanguageMode::SLOPPY) |
.StoreGlobal(wide_name, 1, LanguageMode::STRICT); |
// Emit extra wide global load. |
- builder.LoadGlobal(name, 1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); |
+ builder.LoadGlobal(1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); |
// Emit wide load / store property operations. |
builder.LoadNamedProperty(reg, wide_name, 0) |
@@ -300,7 +300,7 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreAccumulatorInRegister(reg) |
.LoadContextSlot(reg, 1) |
.StoreAccumulatorInRegister(reg) |
- .LoadGlobal(name, 0, TypeofMode::NOT_INSIDE_TYPEOF) |
+ .LoadGlobal(0, TypeofMode::NOT_INSIDE_TYPEOF) |
.StoreAccumulatorInRegister(reg) |
.LoadUndefined() |
.StoreAccumulatorInRegister(reg); |