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

Side by Side Diff: src/compiler/wasm-compiler.cc

Issue 2082523002: [turbofan] Introduce CheckTaggedSigned and CheckTaggedPointer operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile Created 4 years, 6 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/compiler/verifier.cc ('k') | test/unittests/compiler/common-operator-unittest.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 #include "src/compiler/wasm-compiler.h" 5 #include "src/compiler/wasm-compiler.h"
6 6
7 #include "src/isolate-inl.h" 7 #include "src/isolate-inl.h"
8 8
9 #include "src/base/platform/elapsed-timer.h" 9 #include "src/base/platform/elapsed-timer.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 2295
2296 Node* WasmGraphBuilder::BuildAllocateHeapNumberWithValue(Node* value, 2296 Node* WasmGraphBuilder::BuildAllocateHeapNumberWithValue(Node* value,
2297 Node* control) { 2297 Node* control) {
2298 MachineOperatorBuilder* machine = jsgraph()->machine(); 2298 MachineOperatorBuilder* machine = jsgraph()->machine();
2299 CommonOperatorBuilder* common = jsgraph()->common(); 2299 CommonOperatorBuilder* common = jsgraph()->common();
2300 // The AllocateHeapNumberStub does not use the context, so we can safely pass 2300 // The AllocateHeapNumberStub does not use the context, so we can safely pass
2301 // in Smi zero here. 2301 // in Smi zero here.
2302 Callable callable = CodeFactory::AllocateHeapNumber(jsgraph()->isolate()); 2302 Callable callable = CodeFactory::AllocateHeapNumber(jsgraph()->isolate());
2303 Node* target = jsgraph()->HeapConstant(callable.code()); 2303 Node* target = jsgraph()->HeapConstant(callable.code());
2304 Node* context = jsgraph()->NoContextConstant(); 2304 Node* context = jsgraph()->NoContextConstant();
2305 Node* effect = graph()->NewNode(common->BeginRegion(), graph()->start()); 2305 Node* effect =
2306 graph()->NewNode(common->BeginRegion(RegionObservability::kNotObservable),
2307 graph()->start());
2306 if (!allocate_heap_number_operator_.is_set()) { 2308 if (!allocate_heap_number_operator_.is_set()) {
2307 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor( 2309 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor(
2308 jsgraph()->isolate(), jsgraph()->zone(), callable.descriptor(), 0, 2310 jsgraph()->isolate(), jsgraph()->zone(), callable.descriptor(), 0,
2309 CallDescriptor::kNoFlags, Operator::kNoThrow); 2311 CallDescriptor::kNoFlags, Operator::kNoThrow);
2310 allocate_heap_number_operator_.set(common->Call(descriptor)); 2312 allocate_heap_number_operator_.set(common->Call(descriptor));
2311 } 2313 }
2312 Node* heap_number = graph()->NewNode(allocate_heap_number_operator_.get(), 2314 Node* heap_number = graph()->NewNode(allocate_heap_number_operator_.get(),
2313 target, context, effect, control); 2315 target, context, effect, control);
2314 Node* store = 2316 Node* store =
2315 graph()->NewNode(machine->Store(StoreRepresentation( 2317 graph()->NewNode(machine->Store(StoreRepresentation(
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
3263 function_->code_start_offset), 3265 function_->code_start_offset),
3264 compile_ms); 3266 compile_ms);
3265 } 3267 }
3266 3268
3267 return code; 3269 return code;
3268 } 3270 }
3269 3271
3270 } // namespace compiler 3272 } // namespace compiler
3271 } // namespace internal 3273 } // namespace internal
3272 } // namespace v8 3274 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | test/unittests/compiler/common-operator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698