| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 AstType* CompareOpHintToType(CompareOperationHint hint) { | 196 AstType* CompareOpHintToType(CompareOperationHint hint) { |
| 197 switch (hint) { | 197 switch (hint) { |
| 198 case CompareOperationHint::kNone: | 198 case CompareOperationHint::kNone: |
| 199 return AstType::None(); | 199 return AstType::None(); |
| 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: |
| 207 return AstType::InternalizedString(); |
| 206 case CompareOperationHint::kString: | 208 case CompareOperationHint::kString: |
| 207 return AstType::String(); | 209 return AstType::String(); |
| 208 case CompareOperationHint::kAny: | 210 case CompareOperationHint::kAny: |
| 209 return AstType::Any(); | 211 return AstType::Any(); |
| 210 } | 212 } |
| 211 UNREACHABLE(); | 213 UNREACHABLE(); |
| 212 return AstType::None(); | 214 return AstType::None(); |
| 213 } | 215 } |
| 214 | 216 |
| 215 AstType* BinaryOpFeedbackToType(int hint) { | 217 AstType* BinaryOpFeedbackToType(int hint) { |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 // Dictionary has been allocated with sufficient size for all elements. | 590 // Dictionary has been allocated with sufficient size for all elements. |
| 589 DisallowHeapAllocation no_need_to_resize_dictionary; | 591 DisallowHeapAllocation no_need_to_resize_dictionary; |
| 590 HandleScope scope(isolate()); | 592 HandleScope scope(isolate()); |
| 591 USE(UnseededNumberDictionary::AtNumberPut( | 593 USE(UnseededNumberDictionary::AtNumberPut( |
| 592 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 594 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
| 593 } | 595 } |
| 594 | 596 |
| 595 | 597 |
| 596 } // namespace internal | 598 } // namespace internal |
| 597 } // namespace v8 | 599 } // namespace v8 |
| OLD | NEW |