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

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

Issue 2741683004: [rename] Rename internal field to embedder field. (Closed)
Patch Set: [rename] Rename internal field to embedder field. Created 3 years, 9 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/wasm-js.cc ('k') | src/wasm/wasm-module.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_MODULE_H_ 5 #ifndef V8_WASM_MODULE_H_
6 #define V8_WASM_MODULE_H_ 6 #define V8_WASM_MODULE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/api.h" 10 #include "src/api.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 std::ostream& operator<<(std::ostream& os, const WasmModule& module); 346 std::ostream& operator<<(std::ostream& os, const WasmModule& module);
347 std::ostream& operator<<(std::ostream& os, const WasmFunction& function); 347 std::ostream& operator<<(std::ostream& os, const WasmFunction& function);
348 std::ostream& operator<<(std::ostream& os, const WasmFunctionName& name); 348 std::ostream& operator<<(std::ostream& os, const WasmFunctionName& name);
349 349
350 // Get the debug info associated with the given wasm object. 350 // Get the debug info associated with the given wasm object.
351 // If no debug info exists yet, it is created automatically. 351 // If no debug info exists yet, it is created automatically.
352 Handle<WasmDebugInfo> GetDebugInfo(Handle<JSObject> wasm); 352 Handle<WasmDebugInfo> GetDebugInfo(Handle<JSObject> wasm);
353 353
354 // Check whether the given object represents a WebAssembly.Instance instance. 354 // Check whether the given object represents a WebAssembly.Instance instance.
355 // This checks the number and type of internal fields, so it's not 100 percent 355 // This checks the number and type of embedder fields, so it's not 100 percent
356 // secure. If it turns out that we need more complete checks, we could add a 356 // secure. If it turns out that we need more complete checks, we could add a
357 // special marker as internal field, which will definitely never occur anywhere 357 // special marker as embedder field, which will definitely never occur anywhere
358 // else. 358 // else.
359 bool IsWasmInstance(Object* instance); 359 bool IsWasmInstance(Object* instance);
360 360
361 // Get the script of the wasm module. If the origin of the module is asm.js, the 361 // Get the script of the wasm module. If the origin of the module is asm.js, the
362 // returned Script will be a JavaScript Script of Script::TYPE_NORMAL, otherwise 362 // returned Script will be a JavaScript Script of Script::TYPE_NORMAL, otherwise
363 // it's of type TYPE_WASM. 363 // it's of type TYPE_WASM.
364 Handle<Script> GetScript(Handle<JSObject> instance); 364 Handle<Script> GetScript(Handle<JSObject> instance);
365 365
366 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> CreateModuleObjectFromBytes( 366 V8_EXPORT_PRIVATE MaybeHandle<WasmModuleObject> CreateModuleObjectFromBytes(
367 Isolate* isolate, const byte* start, const byte* end, ErrorThrower* thrower, 367 Isolate* isolate, const byte* start, const byte* end, ErrorThrower* thrower,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 int instance_count); 462 int instance_count);
463 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj); 463 void ValidateModuleState(Isolate* isolate, Handle<WasmModuleObject> module_obj);
464 void ValidateOrphanedInstance(Isolate* isolate, 464 void ValidateOrphanedInstance(Isolate* isolate,
465 Handle<WasmInstanceObject> instance); 465 Handle<WasmInstanceObject> instance);
466 } // namespace testing 466 } // namespace testing
467 } // namespace wasm 467 } // namespace wasm
468 } // namespace internal 468 } // namespace internal
469 } // namespace v8 469 } // namespace v8
470 470
471 #endif // V8_WASM_MODULE_H_ 471 #endif // V8_WASM_MODULE_H_
OLDNEW
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698