| OLD | NEW |
| 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 #ifndef V8_WASM_OBJECTS_H_ | 5 #ifndef V8_WASM_OBJECTS_H_ |
| 6 #define V8_WASM_OBJECTS_H_ | 6 #define V8_WASM_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
| 9 #include "src/debug/interface-types.h" | 9 #include "src/debug/interface-types.h" |
| 10 #include "src/objects.h" | 10 #include "src/objects.h" |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // Extract a portion of the wire bytes as UTF-8 string. | 378 // Extract a portion of the wire bytes as UTF-8 string. |
| 379 // Returns a null handle if the respective bytes do not form a valid UTF-8 | 379 // Returns a null handle if the respective bytes do not form a valid UTF-8 |
| 380 // string. | 380 // string. |
| 381 static MaybeHandle<String> ExtractUtf8StringFromModuleBytes( | 381 static MaybeHandle<String> ExtractUtf8StringFromModuleBytes( |
| 382 Isolate* isolate, Handle<WasmCompiledModule> compiled_module, | 382 Isolate* isolate, Handle<WasmCompiledModule> compiled_module, |
| 383 uint32_t offset, uint32_t size); | 383 uint32_t offset, uint32_t size); |
| 384 | 384 |
| 385 // Get a list of all possible breakpoints within a given range of this module. | 385 // Get a list of all possible breakpoints within a given range of this module. |
| 386 bool GetPossibleBreakpoints(const debug::Location& start, | 386 bool GetPossibleBreakpoints(const debug::Location& start, |
| 387 const debug::Location& end, | 387 const debug::Location& end, |
| 388 std::vector<debug::Location>* locations); | 388 std::vector<debug::BreakLocation>* locations); |
| 389 | 389 |
| 390 // Set a breakpoint on the given byte position inside the given module. | 390 // Set a breakpoint on the given byte position inside the given module. |
| 391 // This will affect all live and future instances of the module. | 391 // This will affect all live and future instances of the module. |
| 392 // The passed position might be modified to point to the next breakable | 392 // The passed position might be modified to point to the next breakable |
| 393 // location inside the same function. | 393 // location inside the same function. |
| 394 // If it points outside a function, or behind the last breakable location, | 394 // If it points outside a function, or behind the last breakable location, |
| 395 // this function returns false and does not set any breakpoint. | 395 // this function returns false and does not set any breakpoint. |
| 396 static bool SetBreakPoint(Handle<WasmCompiledModule>, int* position, | 396 static bool SetBreakPoint(Handle<WasmCompiledModule>, int* position, |
| 397 Handle<Object> break_point_object); | 397 Handle<Object> break_point_object); |
| 398 | 398 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 }; | 501 }; |
| 502 }; | 502 }; |
| 503 | 503 |
| 504 #undef DECLARE_ACCESSORS | 504 #undef DECLARE_ACCESSORS |
| 505 #undef DECLARE_OPTIONAL_ACCESSORS | 505 #undef DECLARE_OPTIONAL_ACCESSORS |
| 506 | 506 |
| 507 } // namespace internal | 507 } // namespace internal |
| 508 } // namespace v8 | 508 } // namespace v8 |
| 509 | 509 |
| 510 #endif // V8_WASM_OBJECTS_H_ | 510 #endif // V8_WASM_OBJECTS_H_ |
| OLD | NEW |