Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: src/wasm/wasm-interpreter.cc

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/module-decoder.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/wasm/wasm-interpreter.h" 5 #include "src/wasm/wasm-interpreter.h"
6 6
7 #include "src/utils.h" 7 #include "src/utils.h"
8 #include "src/wasm/ast-decoder.h" 8 #include "src/wasm/ast-decoder.h"
9 #include "src/wasm/decoder.h" 9 #include "src/wasm/decoder.h"
10 #include "src/wasm/wasm-external-refs.h" 10 #include "src/wasm/wasm-external-refs.h"
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 for (auto t : threads_) delete t; 1734 for (auto t : threads_) delete t;
1735 threads_.resize(0); 1735 threads_.resize(0);
1736 } 1736 }
1737 }; 1737 };
1738 1738
1739 //============================================================================ 1739 //============================================================================
1740 // Implementation of the public interface of the interpreter. 1740 // Implementation of the public interface of the interpreter.
1741 //============================================================================ 1741 //============================================================================
1742 WasmInterpreter::WasmInterpreter(WasmInstance* instance, 1742 WasmInterpreter::WasmInterpreter(WasmInstance* instance,
1743 AccountingAllocator* allocator) 1743 AccountingAllocator* allocator)
1744 : zone_(allocator), 1744 : zone_(allocator, ZONE_NAME),
1745 internals_(new (&zone_) WasmInterpreterInternals(&zone_, instance)) {} 1745 internals_(new (&zone_) WasmInterpreterInternals(&zone_, instance)) {}
1746 1746
1747 WasmInterpreter::~WasmInterpreter() { internals_->Delete(); } 1747 WasmInterpreter::~WasmInterpreter() { internals_->Delete(); }
1748 1748
1749 void WasmInterpreter::Run() { internals_->threads_[0]->Run(); } 1749 void WasmInterpreter::Run() { internals_->threads_[0]->Run(); }
1750 1750
1751 void WasmInterpreter::Pause() { internals_->threads_[0]->Pause(); } 1751 void WasmInterpreter::Pause() { internals_->threads_[0]->Pause(); }
1752 1752
1753 bool WasmInterpreter::SetBreakpoint(const WasmFunction* function, pc_t pc, 1753 bool WasmInterpreter::SetBreakpoint(const WasmFunction* function, pc_t pc,
1754 bool enabled) { 1754 bool enabled) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 1844
1845 ControlTransferMap WasmInterpreter::ComputeControlTransfersForTesting( 1845 ControlTransferMap WasmInterpreter::ComputeControlTransfersForTesting(
1846 Zone* zone, const byte* start, const byte* end) { 1846 Zone* zone, const byte* start, const byte* end) {
1847 ControlTransfers targets(zone, nullptr, nullptr, start, end); 1847 ControlTransfers targets(zone, nullptr, nullptr, start, end);
1848 return targets.map_; 1848 return targets.map_;
1849 } 1849 }
1850 1850
1851 } // namespace wasm 1851 } // namespace wasm
1852 } // namespace internal 1852 } // namespace internal
1853 } // namespace v8 1853 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/module-decoder.cc ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698