| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/type-info.h" | 5 #include "src/type-info.h" |
| 6 | 6 |
| 7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 case CompareOperationHint::kSignedSmall: | 200 case CompareOperationHint::kSignedSmall: |
| 201 return AstType::SignedSmall(); | 201 return AstType::SignedSmall(); |
| 202 case CompareOperationHint::kNumber: | 202 case CompareOperationHint::kNumber: |
| 203 return AstType::Number(); | 203 return AstType::Number(); |
| 204 case CompareOperationHint::kNumberOrOddball: | 204 case CompareOperationHint::kNumberOrOddball: |
| 205 return AstType::NumberOrOddball(); | 205 return AstType::NumberOrOddball(); |
| 206 case CompareOperationHint::kInternalizedString: | 206 case CompareOperationHint::kInternalizedString: |
| 207 return AstType::InternalizedString(); | 207 return AstType::InternalizedString(); |
| 208 case CompareOperationHint::kString: | 208 case CompareOperationHint::kString: |
| 209 return AstType::String(); | 209 return AstType::String(); |
| 210 case CompareOperationHint::kReceiver: |
| 211 return AstType::Receiver(); |
| 210 case CompareOperationHint::kAny: | 212 case CompareOperationHint::kAny: |
| 211 return AstType::Any(); | 213 return AstType::Any(); |
| 212 } | 214 } |
| 213 UNREACHABLE(); | 215 UNREACHABLE(); |
| 214 return AstType::None(); | 216 return AstType::None(); |
| 215 } | 217 } |
| 216 | 218 |
| 217 AstType* BinaryOpFeedbackToType(int hint) { | 219 AstType* BinaryOpFeedbackToType(int hint) { |
| 218 switch (hint) { | 220 switch (hint) { |
| 219 case BinaryOperationFeedback::kNone: | 221 case BinaryOperationFeedback::kNone: |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 // Dictionary has been allocated with sufficient size for all elements. | 592 // Dictionary has been allocated with sufficient size for all elements. |
| 591 DisallowHeapAllocation no_need_to_resize_dictionary; | 593 DisallowHeapAllocation no_need_to_resize_dictionary; |
| 592 HandleScope scope(isolate()); | 594 HandleScope scope(isolate()); |
| 593 USE(UnseededNumberDictionary::AtNumberPut( | 595 USE(UnseededNumberDictionary::AtNumberPut( |
| 594 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 596 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
| 595 } | 597 } |
| 596 | 598 |
| 597 | 599 |
| 598 } // namespace internal | 600 } // namespace internal |
| 599 } // namespace v8 | 601 } // namespace v8 |
| OLD | NEW |