| 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/signature.h" | 5 #include "src/signature.h" |
| 6 | 6 |
| 7 #include "src/bit-vector.h" | 7 #include "src/bit-vector.h" |
| 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 break; | 660 break; |
| 661 case kExprBlock: { | 661 case kExprBlock: { |
| 662 // The break environment is the outer environment. | 662 // The break environment is the outer environment. |
| 663 SsaEnv* break_env = ssa_env_; | 663 SsaEnv* break_env = ssa_env_; |
| 664 PushBlock(break_env); | 664 PushBlock(break_env); |
| 665 SetEnv("block:start", Steal(break_env)); | 665 SetEnv("block:start", Steal(break_env)); |
| 666 break; | 666 break; |
| 667 } | 667 } |
| 668 case kExprThrow: { | 668 case kExprThrow: { |
| 669 CHECK_PROTOTYPE_OPCODE(wasm_eh_prototype); | 669 CHECK_PROTOTYPE_OPCODE(wasm_eh_prototype); |
| 670 Pop(0, kAstI32); | 670 Value value = Pop(0, kAstI32); |
| 671 | 671 BUILD(Throw, value.node); |
| 672 // TODO(jpp): start exception propagation. | |
| 673 break; | 672 break; |
| 674 } | 673 } |
| 675 case kExprTry: { | 674 case kExprTry: { |
| 676 CHECK_PROTOTYPE_OPCODE(wasm_eh_prototype); | 675 CHECK_PROTOTYPE_OPCODE(wasm_eh_prototype); |
| 677 SsaEnv* outer_env = ssa_env_; | 676 SsaEnv* outer_env = ssa_env_; |
| 678 SsaEnv* try_env = Steal(outer_env); | 677 SsaEnv* try_env = Steal(outer_env); |
| 679 SsaEnv* catch_env = Split(try_env); | 678 SsaEnv* catch_env = Split(try_env); |
| 680 PushTry(outer_env, catch_env); | 679 PushTry(outer_env, catch_env); |
| 681 SetEnv("try:start", try_env); | 680 SetEnv("try:start", try_env); |
| 682 break; | 681 break; |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, | 1831 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, |
| 1833 const byte* start, const byte* end) { | 1832 const byte* start, const byte* end) { |
| 1834 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; | 1833 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; |
| 1835 WasmFullDecoder decoder(zone, nullptr, body); | 1834 WasmFullDecoder decoder(zone, nullptr, body); |
| 1836 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); | 1835 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); |
| 1837 } | 1836 } |
| 1838 | 1837 |
| 1839 } // namespace wasm | 1838 } // namespace wasm |
| 1840 } // namespace internal | 1839 } // namespace internal |
| 1841 } // namespace v8 | 1840 } // namespace v8 |
| OLD | NEW |