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

Side by Side Diff: src/compiler/wasm-compiler.h

Issue 1874383002: [wasm] Throw real Error on wasm trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@trapreasons-to-messages
Patch Set: rebase Created 4 years, 8 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 | « no previous file | src/compiler/wasm-compiler.cc » ('j') | src/runtime/runtime-internal.cc » ('J')
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_COMPILER_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-opcodes.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Operations independent of {control} or {effect}. 71 // Operations independent of {control} or {effect}.
72 //----------------------------------------------------------------------- 72 //-----------------------------------------------------------------------
73 Node* Error(); 73 Node* Error();
74 Node* Start(unsigned params); 74 Node* Start(unsigned params);
75 Node* Param(unsigned index, wasm::LocalType type); 75 Node* Param(unsigned index, wasm::LocalType type);
76 Node* Loop(Node* entry); 76 Node* Loop(Node* entry);
77 Node* Terminate(Node* effect, Node* control); 77 Node* Terminate(Node* effect, Node* control);
78 Node* Merge(unsigned count, Node** controls); 78 Node* Merge(unsigned count, Node** controls);
79 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control); 79 Node* Phi(wasm::LocalType type, unsigned count, Node** vals, Node* control);
80 Node* EffectPhi(unsigned count, Node** effects, Node* control); 80 Node* EffectPhi(unsigned count, Node** effects, Node* control);
81 Node* NumberConstant(int32_t value);
81 Node* Int32Constant(int32_t value); 82 Node* Int32Constant(int32_t value);
82 Node* Int64Constant(int64_t value); 83 Node* Int64Constant(int64_t value);
83 Node* Float32Constant(float value); 84 Node* Float32Constant(float value);
84 Node* Float64Constant(double value); 85 Node* Float64Constant(double value);
85 Node* Constant(Handle<Object> value); 86 Node* Constant(Handle<Object> value);
86 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right); 87 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right);
87 Node* Unop(wasm::WasmOpcode opcode, Node* input); 88 Node* Unop(wasm::WasmOpcode opcode, Node* input);
88 unsigned InputCount(Node* node); 89 unsigned InputCount(Node* node);
89 bool IsPhiWithMerge(Node* phi, Node* merge); 90 bool IsPhiWithMerge(Node* phi, Node* merge);
90 void AppendToMerge(Node* merge, Node* from); 91 void AppendToMerge(Node* merge, Node* from);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 Node** buf = Buffer(new_count); 246 Node** buf = Buffer(new_count);
246 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 247 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
247 return buf; 248 return buf;
248 } 249 }
249 }; 250 };
250 } // namespace compiler 251 } // namespace compiler
251 } // namespace internal 252 } // namespace internal
252 } // namespace v8 253 } // namespace v8
253 254
254 #endif // V8_COMPILER_WASM_COMPILER_H_ 255 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | src/runtime/runtime-internal.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698