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

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

Issue 1412953007: [Interpreter] Fill out function prologue support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 years, 2 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/test-interpreter.cc ('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 "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 .StoreNamedProperty(reg, 0, 0, LanguageMode::SLOPPY) 61 .StoreNamedProperty(reg, 0, 0, LanguageMode::SLOPPY)
62 .StoreKeyedProperty(reg, reg, 0, LanguageMode::SLOPPY) 62 .StoreKeyedProperty(reg, reg, 0, LanguageMode::SLOPPY)
63 .LoadNamedProperty(reg, 0, 0, LanguageMode::STRICT) 63 .LoadNamedProperty(reg, 0, 0, LanguageMode::STRICT)
64 .LoadKeyedProperty(reg, 0, LanguageMode::STRICT) 64 .LoadKeyedProperty(reg, 0, LanguageMode::STRICT)
65 .StoreNamedProperty(reg, 0, 0, LanguageMode::STRICT) 65 .StoreNamedProperty(reg, 0, 0, LanguageMode::STRICT)
66 .StoreKeyedProperty(reg, reg, 0, LanguageMode::STRICT); 66 .StoreKeyedProperty(reg, reg, 0, LanguageMode::STRICT);
67 67
68 // Emit closure operations. 68 // Emit closure operations.
69 builder.CreateClosure(NOT_TENURED); 69 builder.CreateClosure(NOT_TENURED);
70 70
71 // Emit argument creation operations.
72 builder.CreateArguments(CreateArgumentsType::kMappedArguments)
73 .CreateArguments(CreateArgumentsType::kUnmappedArguments);
74
71 // Emit literal creation operations 75 // Emit literal creation operations
72 builder.CreateRegExpLiteral(0, reg) 76 builder.CreateRegExpLiteral(0, reg)
73 .CreateArrayLiteral(0, 0) 77 .CreateArrayLiteral(0, 0)
74 .CreateObjectLiteral(0, 0); 78 .CreateObjectLiteral(0, 0);
75 79
76 // Call operations. 80 // Call operations.
77 builder.Call(reg, reg, 0); 81 builder.Call(reg, reg, 0);
78 builder.CallRuntime(Runtime::kIsArray, reg, 1); 82 builder.CallRuntime(Runtime::kIsArray, reg, 1);
79 83
80 // Emit binary operator invocations. 84 // Emit binary operator invocations.
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 537
534 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); 538 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn);
535 iterator.Advance(); 539 iterator.Advance();
536 CHECK(iterator.done()); 540 CHECK(iterator.done());
537 } 541 }
538 542
539 543
540 } // namespace interpreter 544 } // namespace interpreter
541 } // namespace internal 545 } // namespace internal
542 } // namespace v8 546 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/test-interpreter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698