| 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 "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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Emit load / store lookup slots. | 97 // Emit load / store lookup slots. |
| 98 builder.LoadLookupSlot(name, TypeofMode::NOT_INSIDE_TYPEOF) | 98 builder.LoadLookupSlot(name, TypeofMode::NOT_INSIDE_TYPEOF) |
| 99 .LoadLookupSlot(name, TypeofMode::INSIDE_TYPEOF) | 99 .LoadLookupSlot(name, TypeofMode::INSIDE_TYPEOF) |
| 100 .StoreLookupSlot(name, LanguageMode::SLOPPY) | 100 .StoreLookupSlot(name, LanguageMode::SLOPPY) |
| 101 .StoreLookupSlot(name, LanguageMode::STRICT); | 101 .StoreLookupSlot(name, LanguageMode::STRICT); |
| 102 | 102 |
| 103 // Emit load / store lookup slots with context fast paths. | 103 // Emit load / store lookup slots with context fast paths. |
| 104 builder.LoadLookupContextSlot(name, TypeofMode::NOT_INSIDE_TYPEOF, 1, 0) | 104 builder.LoadLookupContextSlot(name, TypeofMode::NOT_INSIDE_TYPEOF, 1, 0) |
| 105 .LoadLookupContextSlot(name, TypeofMode::INSIDE_TYPEOF, 1, 0); | 105 .LoadLookupContextSlot(name, TypeofMode::INSIDE_TYPEOF, 1, 0); |
| 106 | 106 |
| 107 // Emit load / store lookup slots with global fast paths. |
| 108 builder.LoadLookupGlobalSlot(name, TypeofMode::NOT_INSIDE_TYPEOF, 1, 0) |
| 109 .LoadLookupGlobalSlot(name, TypeofMode::INSIDE_TYPEOF, 1, 0); |
| 110 |
| 107 // Emit closure operations. | 111 // Emit closure operations. |
| 108 builder.CreateClosure(0, NOT_TENURED); | 112 builder.CreateClosure(0, NOT_TENURED); |
| 109 | 113 |
| 110 // Emit create context operation. | 114 // Emit create context operation. |
| 111 builder.CreateBlockContext(factory->NewScopeInfo(1)); | 115 builder.CreateBlockContext(factory->NewScopeInfo(1)); |
| 112 builder.CreateCatchContext(reg, name, factory->NewScopeInfo(1)); | 116 builder.CreateCatchContext(reg, name, factory->NewScopeInfo(1)); |
| 113 builder.CreateFunctionContext(1); | 117 builder.CreateFunctionContext(1); |
| 114 builder.CreateWithContext(reg, factory->NewScopeInfo(1)); | 118 builder.CreateWithContext(reg, factory->NewScopeInfo(1)); |
| 115 | 119 |
| 116 // Emit literal creation operations. | 120 // Emit literal creation operations. |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 iterator.Advance(); | 765 iterator.Advance(); |
| 762 } | 766 } |
| 763 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); | 767 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); |
| 764 iterator.Advance(); | 768 iterator.Advance(); |
| 765 CHECK(iterator.done()); | 769 CHECK(iterator.done()); |
| 766 } | 770 } |
| 767 | 771 |
| 768 } // namespace interpreter | 772 } // namespace interpreter |
| 769 } // namespace internal | 773 } // namespace internal |
| 770 } // namespace v8 | 774 } // namespace v8 |
| OLD | NEW |