envoy 1.24.0#113451
Conversation
|
Thanks, @chenrui333! This is interesting. The test caught by an error since: Detailsexternal/v8/src/compiler/js-native-context-specialization.cc:2333:23: error: loop variable 'map' of type 'const v8::internal::compiler::MapRef' creates a copy from type 'const v8::internal::compiler::MapRef' [-Werror,-Wrange-loop-analysis] This is interesting since the previous version (1.23.1) depends on the same v8 version (10.4.132.18). Do we have a different compiler version now? (probably this one is clang 12?) We have two options:
Patch for 1. diff --git a/bazel/v8.patch b/bazel/v8.patch
index 03c849156a..1b7a8f27b1 100644
--- a/bazel/v8.patch
+++ b/bazel/v8.patch
@@ -363,3 +363,16 @@ index 131ff9614e..6455f8757d 100644
char filename[] = "/tmp/v8_tmp_file_for_testing_XXXXXX";
fd = mkstemp(filename);
if (fd != -1) CHECK_EQ(0, unlink(filename));
+diff --git a/src/compiler/js-native-context-specialization.cc b/src/compiler/js-native-context-specialization.cc
+index 729d8ac99f..c1b0f7e0ba 100644
+--- a/src/compiler/js-native-context-specialization.cc
++++ b/src/compiler/js-native-context-specialization.cc
+@@ -2330,7 +2330,7 @@ Node* JSNativeContextSpecialization::InlinePropertyGetterCall(
+
+ if (access_info.IsDictionaryProtoAccessorConstant()) {
+ // For fast mode holders we recorded dependencies in BuildPropertyLoad.
+- for (const MapRef map : access_info.lookup_start_object_maps()) {
++ for (const MapRef& map : access_info.lookup_start_object_maps()) {
+ dependencies()->DependOnConstantInDictionaryPrototypeChain(
+ map, access_info.name(), constant, PropertyKind::kAccessor);
+ } |
|
Ah, sorry, we re-enabled wasm support with the v8 engine (default) here: envoyproxy/envoy@78cccd3. Hence, this happens. I vote for: creating Since it will be cleaner and when we do |
|
Also, |
yeah, gonna try that. |
8253da2 to
bab3faf
Compare
Signed-off-by: Rui Chen <rui@chenrui.dev>
bab3faf to
3d7f105
Compare
|
@chenrui333 I have successfully tested the following formula on Catalina, Monterey, and Ventura locally: Feel free to modify this PR with it. Or please let me know if you want me to submit another PR. Also, seems like we need to move the "versioned" Thank you! |
|
@chenrui333 sorry, do you want to modify this PR, or I can submit another one? Thank you! |
yeah, sounds good to me (always feel free to submit a new one :) ) |
Created by
brew bumpCreated with
brew bump-formula-pr.