OLD | NEW |
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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "src/compiler/js-context-specialization.h" | 8 #include "src/compiler/js-context-specialization.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/js-operator.h" | 10 #include "src/compiler/js-operator.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 Node* value_use = | 221 Node* value_use = |
222 t.graph()->NewNode(t.simplified()->ChangeTaggedToInt32(), load); | 222 t.graph()->NewNode(t.simplified()->ChangeTaggedToInt32(), load); |
223 Node* other_load = | 223 Node* other_load = |
224 t.graph()->NewNode(t.javascript()->LoadContext(0, slot, true), | 224 t.graph()->NewNode(t.javascript()->LoadContext(0, slot, true), |
225 param_context, param_context, load); | 225 param_context, param_context, load); |
226 Node* effect_use = other_load; | 226 Node* effect_use = other_load; |
227 Node* other_use = | 227 Node* other_use = |
228 t.graph()->NewNode(t.simplified()->ChangeTaggedToInt32(), other_load); | 228 t.graph()->NewNode(t.simplified()->ChangeTaggedToInt32(), other_load); |
229 | 229 |
230 Node* add = t.graph()->NewNode( | 230 Node* add = t.graph()->NewNode( |
231 t.javascript()->Add(LanguageMode::SLOPPY), value_use, other_use, | 231 t.javascript()->Add(LanguageMode::SLOPPY, BinaryOperationHints::Any()), |
232 param_context, t.jsgraph()->EmptyFrameState(), | 232 value_use, other_use, param_context, t.jsgraph()->EmptyFrameState(), |
233 t.jsgraph()->EmptyFrameState(), other_load, start); | 233 t.jsgraph()->EmptyFrameState(), other_load, start); |
234 | 234 |
235 Node* ret = | 235 Node* ret = |
236 t.graph()->NewNode(t.common()->Return(), add, effect_use, start); | 236 t.graph()->NewNode(t.common()->Return(), add, effect_use, start); |
237 Node* end = t.graph()->NewNode(t.common()->End(1), ret); | 237 Node* end = t.graph()->NewNode(t.common()->End(1), ret); |
238 USE(end); | 238 USE(end); |
239 t.graph()->SetEnd(end); | 239 t.graph()->SetEnd(end); |
240 | 240 |
241 // Double check the above graph is what we expect, or the test is broken. | 241 // Double check the above graph is what we expect, or the test is broken. |
242 CheckEffectInput(effect_in, load); | 242 CheckEffectInput(effect_in, load); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); | 317 CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); |
318 CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); | 318 CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); |
319 CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsNaN()); | 319 CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsNaN()); |
320 } | 320 } |
321 } | 321 } |
322 | 322 |
323 } // namespace compiler | 323 } // namespace compiler |
324 } // namespace internal | 324 } // namespace internal |
325 } // namespace v8 | 325 } // namespace v8 |
OLD | NEW |