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/js-type-feedback.h" | 5 #include "src/compiler/js-type-feedback.h" |
6 | 6 |
7 #include "src/property-details.h" | 7 #include "src/property-details.h" |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 } | 269 } |
270 | 270 |
271 | 271 |
272 Reduction JSTypeFeedbackSpecializer::ReduceJSLoadProperty(Node* node) { | 272 Reduction JSTypeFeedbackSpecializer::ReduceJSLoadProperty(Node* node) { |
273 return NoChange(); | 273 return NoChange(); |
274 } | 274 } |
275 | 275 |
276 | 276 |
277 Reduction JSTypeFeedbackSpecializer::ReduceJSStoreNamed(Node* node) { | 277 Reduction JSTypeFeedbackSpecializer::ReduceJSStoreNamed(Node* node) { |
278 DCHECK(node->opcode() == IrOpcode::kJSStoreNamed); | 278 DCHECK(node->opcode() == IrOpcode::kJSStoreNamed); |
| 279 if (true) return NoChange(); // TODO(titzer): storenamed is broken |
279 Node* frame_state_before = GetFrameStateBefore(node); | 280 Node* frame_state_before = GetFrameStateBefore(node); |
280 if (frame_state_before == nullptr) return NoChange(); | 281 if (frame_state_before == nullptr) return NoChange(); |
281 | 282 |
282 TypeFeedbackId id = js_type_feedback_->find(node); | 283 TypeFeedbackId id = js_type_feedback_->find(node); |
283 if (id.IsNone() || oracle()->StoreIsUninitialized(id)) return NoChange(); | 284 if (id.IsNone() || oracle()->StoreIsUninitialized(id)) return NoChange(); |
284 | 285 |
285 const StoreNamedParameters& p = StoreNamedParametersOf(node->op()); | 286 const StoreNamedParameters& p = StoreNamedParametersOf(node->op()); |
286 SmallMapList maps; | 287 SmallMapList maps; |
287 Handle<Name> name = p.name().handle(); | 288 Handle<Name> name = p.name().handle(); |
288 Node* receiver = node->InputAt(0); | 289 Node* receiver = node->InputAt(0); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 BailoutId id = OpParameter<FrameStateCallInfo>(node).bailout_id(); | 376 BailoutId id = OpParameter<FrameStateCallInfo>(node).bailout_id(); |
376 if (id != BailoutId::None()) return frame_state; | 377 if (id != BailoutId::None()) return frame_state; |
377 } | 378 } |
378 } | 379 } |
379 return nullptr; | 380 return nullptr; |
380 } | 381 } |
381 | 382 |
382 } // namespace compiler | 383 } // namespace compiler |
383 } // namespace internal | 384 } // namespace internal |
384 } // namespace v8 | 385 } // namespace v8 |
OLD | NEW |