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

Side by Side Diff: test/unittests/interpreter/bytecode-array-builder-unittest.cc

Issue 2510743002: [interpreter] Bytecode for StaDataPropertyInLiteral. (Closed)
Patch Set: Fix typo. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 builder.LoadGlobal(1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF); 295 builder.LoadGlobal(1024 * 1024, TypeofMode::NOT_INSIDE_TYPEOF);
296 296
297 // Emit wide load / store property operations. 297 // Emit wide load / store property operations.
298 builder.LoadNamedProperty(reg, wide_name, 0) 298 builder.LoadNamedProperty(reg, wide_name, 0)
299 .LoadKeyedProperty(reg, 2056) 299 .LoadKeyedProperty(reg, 2056)
300 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::SLOPPY) 300 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::SLOPPY)
301 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::SLOPPY) 301 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::SLOPPY)
302 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT) 302 .StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT)
303 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); 303 .StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT);
304 304
305 builder.StoreDataPropertyInLiteral(reg, reg, reg, reg);
306
305 // Emit wide context operations. 307 // Emit wide context operations.
306 builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0); 308 builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0);
307 309
308 // Emit wide load / store lookup slots. 310 // Emit wide load / store lookup slots.
309 builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF) 311 builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF)
310 .LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF) 312 .LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF)
311 .StoreLookupSlot(wide_name, LanguageMode::SLOPPY) 313 .StoreLookupSlot(wide_name, LanguageMode::SLOPPY)
312 .StoreLookupSlot(wide_name, LanguageMode::STRICT); 314 .StoreLookupSlot(wide_name, LanguageMode::STRICT);
313 315
314 // CreateClosureWide 316 // CreateClosureWide
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 iterator.Advance(); 730 iterator.Advance();
729 } 731 }
730 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); 732 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn);
731 iterator.Advance(); 733 iterator.Advance();
732 CHECK(iterator.done()); 734 CHECK(iterator.done());
733 } 735 }
734 736
735 } // namespace interpreter 737 } // namespace interpreter
736 } // namespace internal 738 } // namespace internal
737 } // namespace v8 739 } // namespace v8
OLDNEW
« src/interpreter/interpreter.cc ('K') | « test/mjsunit/object-literal.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698