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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 builder.LoadGlobal(name, 1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); | 317 builder.LoadGlobal(name, 1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); |
318 | 318 |
319 // Emit wide load / store property operations. | 319 // Emit wide load / store property operations. |
320 builder.LoadNamedProperty(reg, wide_name, 0) | 320 builder.LoadNamedProperty(reg, wide_name, 0) |
321 .LoadKeyedProperty(reg, 2056) | 321 .LoadKeyedProperty(reg, 2056) |
322 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::SLOPPY) | 322 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::SLOPPY) |
323 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::SLOPPY) | 323 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::SLOPPY) |
324 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT) | 324 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT) |
325 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); | 325 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); |
326 | 326 |
327 builder.StoreDataPropertyInLiteral(reg, reg, reg, | 327 builder.StoreDataPropertyInLiteral(reg, reg, |
328 DataPropertyInLiteralFlag::kNoFlags); | 328 DataPropertyInLiteralFlag::kNoFlags, 0); |
329 | 329 |
330 // Emit wide context operations. | 330 // Emit wide context operations. |
331 builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0); | 331 builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0); |
332 | 332 |
333 // Emit wide load / store lookup slots. | 333 // Emit wide load / store lookup slots. |
334 builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF) | 334 builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF) |
335 .LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF) | 335 .LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF) |
336 .StoreLookupSlot(wide_name, LanguageMode::SLOPPY) | 336 .StoreLookupSlot(wide_name, LanguageMode::SLOPPY) |
337 .StoreLookupSlot(wide_name, LanguageMode::STRICT); | 337 .StoreLookupSlot(wide_name, LanguageMode::STRICT); |
338 | 338 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 iterator.Advance(); | 759 iterator.Advance(); |
760 } | 760 } |
761 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); | 761 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); |
762 iterator.Advance(); | 762 iterator.Advance(); |
763 CHECK(iterator.done()); | 763 CHECK(iterator.done()); |
764 } | 764 } |
765 | 765 |
766 } // namespace interpreter | 766 } // namespace interpreter |
767 } // namespace internal | 767 } // namespace internal |
768 } // namespace v8 | 768 } // namespace v8 |
OLD | NEW |