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

Side by Side Diff: src/api.cc

Issue 2403093002: [wasm] Canonicalize function signature indices for matching in indirect calls. (Closed)
Patch Set: Address review comments 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 | « BUILD.gn ('k') | src/compiler/wasm-compiler.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "src/snapshot/snapshot.h" 66 #include "src/snapshot/snapshot.h"
67 #include "src/startup-data-util.h" 67 #include "src/startup-data-util.h"
68 #include "src/tracing/trace-event.h" 68 #include "src/tracing/trace-event.h"
69 #include "src/unicode-inl.h" 69 #include "src/unicode-inl.h"
70 #include "src/v8.h" 70 #include "src/v8.h"
71 #include "src/v8threads.h" 71 #include "src/v8threads.h"
72 #include "src/value-serializer.h" 72 #include "src/value-serializer.h"
73 #include "src/version.h" 73 #include "src/version.h"
74 #include "src/vm-state-inl.h" 74 #include "src/vm-state-inl.h"
75 #include "src/wasm/wasm-module.h" 75 #include "src/wasm/wasm-module.h"
76 #include "src/wasm/wasm-result.h"
76 77
77 namespace v8 { 78 namespace v8 {
78 79
79 #define LOG_API(isolate, class_name, function_name) \ 80 #define LOG_API(isolate, class_name, function_name) \
80 i::RuntimeCallTimerScope _runtime_timer( \ 81 i::RuntimeCallTimerScope _runtime_timer( \
81 isolate, &i::RuntimeCallStats::API_##class_name##_##function_name); \ 82 isolate, &i::RuntimeCallStats::API_##class_name##_##function_name); \
82 LOG(isolate, ApiEntryCall("v8::" #class_name "::" #function_name)) 83 LOG(isolate, ApiEntryCall("v8::" #class_name "::" #function_name))
83 84
84 #define ENTER_V8(isolate) i::VMState<v8::OTHER> __state__((isolate)) 85 #define ENTER_V8(isolate) i::VMState<v8::OTHER> __state__((isolate))
85 86
(...skipping 9331 matching lines...) Expand 10 before | Expand all | Expand 10 after
9417 Address callback_address = 9418 Address callback_address =
9418 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9419 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9419 VMState<EXTERNAL> state(isolate); 9420 VMState<EXTERNAL> state(isolate);
9420 ExternalCallbackScope call_scope(isolate, callback_address); 9421 ExternalCallbackScope call_scope(isolate, callback_address);
9421 callback(info); 9422 callback(info);
9422 } 9423 }
9423 9424
9424 9425
9425 } // namespace internal 9426 } // namespace internal
9426 } // namespace v8 9427 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698