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

Side by Side Diff: src/wasm/wasm-module-builder.h

Issue 2563613003: Revert of [wasm] Fix location for error in asm.js ToNumber conversion (Closed)
Patch Set: Created 4 years 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/wasm-module.cc ('k') | src/wasm/wasm-module-builder.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 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 #ifndef V8_WASM_WASM_MODULE_BUILDER_H_ 5 #ifndef V8_WASM_WASM_MODULE_BUILDER_H_
6 #define V8_WASM_WASM_MODULE_BUILDER_H_ 6 #define V8_WASM_WASM_MODULE_BUILDER_H_
7 7
8 #include "src/signature.h" 8 #include "src/signature.h"
9 #include "src/zone/zone-containers.h" 9 #include "src/zone/zone-containers.h"
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void EmitGetLocal(uint32_t index); 127 void EmitGetLocal(uint32_t index);
128 void EmitSetLocal(uint32_t index); 128 void EmitSetLocal(uint32_t index);
129 void EmitTeeLocal(uint32_t index); 129 void EmitTeeLocal(uint32_t index);
130 void EmitI32Const(int32_t val); 130 void EmitI32Const(int32_t val);
131 void EmitWithU8(WasmOpcode opcode, const byte immediate); 131 void EmitWithU8(WasmOpcode opcode, const byte immediate);
132 void EmitWithU8U8(WasmOpcode opcode, const byte imm1, const byte imm2); 132 void EmitWithU8U8(WasmOpcode opcode, const byte imm1, const byte imm2);
133 void EmitWithVarInt(WasmOpcode opcode, uint32_t immediate); 133 void EmitWithVarInt(WasmOpcode opcode, uint32_t immediate);
134 void EmitDirectCallIndex(uint32_t index); 134 void EmitDirectCallIndex(uint32_t index);
135 void ExportAs(Vector<const char> name); 135 void ExportAs(Vector<const char> name);
136 void SetName(Vector<const char> name); 136 void SetName(Vector<const char> name);
137 void AddAsmWasmOffset(int call_position, int to_number_position); 137 void AddAsmWasmOffset(int asm_position);
138 138
139 void WriteSignature(ZoneBuffer& buffer) const; 139 void WriteSignature(ZoneBuffer& buffer) const;
140 void WriteExports(ZoneBuffer& buffer) const; 140 void WriteExports(ZoneBuffer& buffer) const;
141 void WriteBody(ZoneBuffer& buffer) const; 141 void WriteBody(ZoneBuffer& buffer) const;
142 void WriteAsmWasmOffsetTable(ZoneBuffer& buffer) const; 142 void WriteAsmWasmOffsetTable(ZoneBuffer& buffer) const;
143 143
144 uint32_t func_index() { return func_index_; } 144 uint32_t func_index() { return func_index_; }
145 FunctionSig* signature(); 145 FunctionSig* signature();
146 146
147 private: 147 private:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 279
280 inline FunctionSig* WasmFunctionBuilder::signature() { 280 inline FunctionSig* WasmFunctionBuilder::signature() {
281 return builder_->signatures_[signature_index_]; 281 return builder_->signatures_[signature_index_];
282 } 282 }
283 283
284 } // namespace wasm 284 } // namespace wasm
285 } // namespace internal 285 } // namespace internal
286 } // namespace v8 286 } // namespace v8
287 287
288 #endif // V8_WASM_WASM_MODULE_BUILDER_H_ 288 #endif // V8_WASM_WASM_MODULE_BUILDER_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | src/wasm/wasm-module-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698