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 "test/unittests/test-utils.h" | 9 #include "test/unittests/test-utils.h" |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 .StoreNamedProperty(reg, reg, 0, LanguageMode::SLOPPY) | 60 .StoreNamedProperty(reg, reg, 0, LanguageMode::SLOPPY) |
61 .StoreKeyedProperty(reg, reg, 0, LanguageMode::SLOPPY) | 61 .StoreKeyedProperty(reg, reg, 0, LanguageMode::SLOPPY) |
62 .LoadNamedProperty(reg, 0, LanguageMode::STRICT) | 62 .LoadNamedProperty(reg, 0, LanguageMode::STRICT) |
63 .LoadKeyedProperty(reg, 0, LanguageMode::STRICT) | 63 .LoadKeyedProperty(reg, 0, LanguageMode::STRICT) |
64 .StoreNamedProperty(reg, reg, 0, LanguageMode::STRICT) | 64 .StoreNamedProperty(reg, reg, 0, LanguageMode::STRICT) |
65 .StoreKeyedProperty(reg, reg, 0, LanguageMode::STRICT); | 65 .StoreKeyedProperty(reg, reg, 0, LanguageMode::STRICT); |
66 | 66 |
67 // Emit closure operations. | 67 // Emit closure operations. |
68 builder.CreateClosure(NOT_TENURED); | 68 builder.CreateClosure(NOT_TENURED); |
69 | 69 |
| 70 // Emit argument creation operations. |
| 71 builder.CreateArguments(true).CreateArguments(false); |
| 72 |
70 // Emit literal creation operations | 73 // Emit literal creation operations |
71 builder.CreateRegExpLiteral(0, reg) | 74 builder.CreateRegExpLiteral(0, reg) |
72 .CreateArrayLiteral(0, 0) | 75 .CreateArrayLiteral(0, 0) |
73 .CreateObjectLiteral(0, 0); | 76 .CreateObjectLiteral(0, 0); |
74 | 77 |
75 // Call operations. | 78 // Call operations. |
76 builder.Call(reg, reg, 0); | 79 builder.Call(reg, reg, 0); |
77 builder.CallRuntime(Runtime::kIsArray, reg, 1); | 80 builder.CallRuntime(Runtime::kIsArray, reg, 1); |
78 | 81 |
79 // Emit binary operator invocations. | 82 // Emit binary operator invocations. |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 | 504 |
502 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); | 505 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); |
503 iterator.Advance(); | 506 iterator.Advance(); |
504 CHECK(iterator.done()); | 507 CHECK(iterator.done()); |
505 } | 508 } |
506 | 509 |
507 | 510 |
508 } // namespace interpreter | 511 } // namespace interpreter |
509 } // namespace internal | 512 } // namespace internal |
510 } // namespace v8 | 513 } // namespace v8 |
OLD | NEW |