OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/interpreter/bytecode-array-builder.h" | 7 #include "src/interpreter/bytecode-array-builder.h" |
8 #include "src/interpreter/bytecode-array-iterator.h" | 8 #include "src/interpreter/bytecode-array-iterator.h" |
9 #include "src/interpreter/bytecode-label.h" | 9 #include "src/interpreter/bytecode-label.h" |
10 #include "src/interpreter/bytecode-register-allocator.h" | 10 #include "src/interpreter/bytecode-register-allocator.h" |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 builder.LoadGlobal(name, 1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); | 316 builder.LoadGlobal(name, 1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); |
317 | 317 |
318 // Emit wide load / store property operations. | 318 // Emit wide load / store property operations. |
319 builder.LoadNamedProperty(reg, wide_name, 0) | 319 builder.LoadNamedProperty(reg, wide_name, 0) |
320 .LoadKeyedProperty(reg, 2056) | 320 .LoadKeyedProperty(reg, 2056) |
321 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::SLOPPY) | 321 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::SLOPPY) |
322 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::SLOPPY) | 322 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::SLOPPY) |
323 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT) | 323 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT) |
324 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); | 324 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); |
325 | 325 |
326 builder.StoreDataPropertyInLiteral(reg, reg, reg, reg); | 326 builder.StoreDataPropertyInLiteral(reg, reg, reg, |
| 327 DataPropertyInLiteralFlag::kNoFlags); |
327 | 328 |
328 // Emit wide context operations. | 329 // Emit wide context operations. |
329 builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0); | 330 builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0); |
330 | 331 |
331 // Emit wide load / store lookup slots. | 332 // Emit wide load / store lookup slots. |
332 builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF) | 333 builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF) |
333 .LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF) | 334 .LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF) |
334 .StoreLookupSlot(wide_name, LanguageMode::SLOPPY) | 335 .StoreLookupSlot(wide_name, LanguageMode::SLOPPY) |
335 .StoreLookupSlot(wide_name, LanguageMode::STRICT); | 336 .StoreLookupSlot(wide_name, LanguageMode::STRICT); |
336 | 337 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 iterator.Advance(); | 758 iterator.Advance(); |
758 } | 759 } |
759 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); | 760 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); |
760 iterator.Advance(); | 761 iterator.Advance(); |
761 CHECK(iterator.done()); | 762 CHECK(iterator.done()); |
762 } | 763 } |
763 | 764 |
764 } // namespace interpreter | 765 } // namespace interpreter |
765 } // namespace internal | 766 } // namespace internal |
766 } // namespace v8 | 767 } // namespace v8 |
OLD | NEW |