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

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 2664273002: [wasm] Acquire the context for TrapIf from a wasm frame (Closed)
Patch Set: Created 3 years, 10 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/arm64/code-generator-arm64.cc » ('j') | src/runtime/runtime-wasm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/compilation-info.h" 8 #include "src/compilation-info.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 if (trap_id == Runtime::kNumFunctions) { 1923 if (trap_id == Runtime::kNumFunctions) {
1924 // We cannot test calls to the runtime in cctest/test-run-wasm. 1924 // We cannot test calls to the runtime in cctest/test-run-wasm.
1925 // Therefore we emit a call to C here instead of a call to the runtime. 1925 // Therefore we emit a call to C here instead of a call to the runtime.
1926 // We use the context register as the scratch register, because we do 1926 // We use the context register as the scratch register, because we do
1927 // not have a context here. 1927 // not have a context here.
1928 __ PrepareCallCFunction(0, 0, cp); 1928 __ PrepareCallCFunction(0, 0, cp);
1929 __ CallCFunction( 1929 __ CallCFunction(
1930 ExternalReference::wasm_call_trap_callback_for_testing(isolate()), 1930 ExternalReference::wasm_call_trap_callback_for_testing(isolate()),
1931 0); 1931 0);
1932 } else { 1932 } else {
1933 __ Move(cp, isolate()->native_context()); 1933 __ Move(cp, Smi::kZero);
1934 gen_->AssembleSourcePosition(instr_); 1934 gen_->AssembleSourcePosition(instr_);
1935 __ CallRuntime(trap_id); 1935 __ CallRuntime(trap_id);
1936 } 1936 }
1937 ReferenceMap* reference_map = 1937 ReferenceMap* reference_map =
1938 new (gen_->zone()) ReferenceMap(gen_->zone()); 1938 new (gen_->zone()) ReferenceMap(gen_->zone());
1939 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0, 1939 gen_->RecordSafepoint(reference_map, Safepoint::kSimple, 0,
1940 Safepoint::kNoLazyDeopt); 1940 Safepoint::kNoLazyDeopt);
1941 } 1941 }
1942 1942
1943 bool frame_elided_; 1943 bool frame_elided_;
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
2461 padding_size -= v8::internal::Assembler::kInstrSize; 2461 padding_size -= v8::internal::Assembler::kInstrSize;
2462 } 2462 }
2463 } 2463 }
2464 } 2464 }
2465 2465
2466 #undef __ 2466 #undef __
2467 2467
2468 } // namespace compiler 2468 } // namespace compiler
2469 } // namespace internal 2469 } // namespace internal
2470 } // namespace v8 2470 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | src/runtime/runtime-wasm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698