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

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

Issue 2587393006: [runtime] Collect IC feedback in DefineDataPropertyInLiteral. (Closed)
Patch Set: Rebase. 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 unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698