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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |