OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |