| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/base/platform/elapsed-timer.h" | 5 #include "src/base/platform/elapsed-timer.h" |
| 6 #include "src/signature.h" | 6 #include "src/signature.h" |
| 7 | 7 |
| 8 #include "src/flags.h" | 8 #include "src/flags.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 ssa_env_->Kill(SsaEnv::kControlEnd); | 896 ssa_env_->Kill(SsaEnv::kControlEnd); |
| 897 } | 897 } |
| 898 break; | 898 break; |
| 899 } | 899 } |
| 900 case kExprSetLocal: { | 900 case kExprSetLocal: { |
| 901 int unused = 0; | 901 int unused = 0; |
| 902 uint32_t index; | 902 uint32_t index; |
| 903 LocalType type = LocalOperand(p->pc(), &index, &unused); | 903 LocalType type = LocalOperand(p->pc(), &index, &unused); |
| 904 Tree* val = p->last(); | 904 Tree* val = p->last(); |
| 905 if (type == val->type) { | 905 if (type == val->type) { |
| 906 if (builder_) ssa_env_->locals[index] = val->node; | 906 if (build()) ssa_env_->locals[index] = val->node; |
| 907 p->tree->node = val->node; | 907 p->tree->node = val->node; |
| 908 } else { | 908 } else { |
| 909 error(p->pc(), val->pc, "Typecheck failed in SetLocal"); | 909 error(p->pc(), val->pc, "Typecheck failed in SetLocal"); |
| 910 } | 910 } |
| 911 break; | 911 break; |
| 912 } | 912 } |
| 913 case kExprStoreGlobal: { | 913 case kExprStoreGlobal: { |
| 914 int unused = 0; | 914 int unused = 0; |
| 915 uint32_t index; | 915 uint32_t index; |
| 916 LocalType type = GlobalOperand(p->pc(), &index, &unused); | 916 LocalType type = GlobalOperand(p->pc(), &index, &unused); |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) | 1574 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) |
| 1575 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) | 1575 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) |
| 1576 #undef DECLARE_OPCODE_CASE | 1576 #undef DECLARE_OPCODE_CASE |
| 1577 } | 1577 } |
| 1578 UNREACHABLE(); | 1578 UNREACHABLE(); |
| 1579 return 0; | 1579 return 0; |
| 1580 } | 1580 } |
| 1581 } // namespace wasm | 1581 } // namespace wasm |
| 1582 } // namespace internal | 1582 } // namespace internal |
| 1583 } // namespace v8 | 1583 } // namespace v8 |
| OLD | NEW |