| 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/assembler-inl.h" | 7 #include "src/assembler-inl.h" |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 case CompareOperationHint::kSignedSmall: | 184 case CompareOperationHint::kSignedSmall: |
| 185 return AstType::SignedSmall(); | 185 return AstType::SignedSmall(); |
| 186 case CompareOperationHint::kNumber: | 186 case CompareOperationHint::kNumber: |
| 187 return AstType::Number(); | 187 return AstType::Number(); |
| 188 case CompareOperationHint::kNumberOrOddball: | 188 case CompareOperationHint::kNumberOrOddball: |
| 189 return AstType::NumberOrOddball(); | 189 return AstType::NumberOrOddball(); |
| 190 case CompareOperationHint::kInternalizedString: | 190 case CompareOperationHint::kInternalizedString: |
| 191 return AstType::InternalizedString(); | 191 return AstType::InternalizedString(); |
| 192 case CompareOperationHint::kString: | 192 case CompareOperationHint::kString: |
| 193 return AstType::String(); | 193 return AstType::String(); |
| 194 case CompareOperationHint::kSymbol: |
| 195 UNREACHABLE(); |
| 194 case CompareOperationHint::kReceiver: | 196 case CompareOperationHint::kReceiver: |
| 195 return AstType::Receiver(); | 197 return AstType::Receiver(); |
| 196 case CompareOperationHint::kAny: | 198 case CompareOperationHint::kAny: |
| 197 return AstType::Any(); | 199 return AstType::Any(); |
| 198 } | 200 } |
| 199 UNREACHABLE(); | 201 UNREACHABLE(); |
| 200 return AstType::None(); | 202 return AstType::None(); |
| 201 } | 203 } |
| 202 | 204 |
| 203 AstType* BinaryOpFeedbackToType(int hint) { | 205 AstType* BinaryOpFeedbackToType(int hint) { |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 // Dictionary has been allocated with sufficient size for all elements. | 543 // Dictionary has been allocated with sufficient size for all elements. |
| 542 DisallowHeapAllocation no_need_to_resize_dictionary; | 544 DisallowHeapAllocation no_need_to_resize_dictionary; |
| 543 HandleScope scope(isolate()); | 545 HandleScope scope(isolate()); |
| 544 USE(UnseededNumberDictionary::AtNumberPut( | 546 USE(UnseededNumberDictionary::AtNumberPut( |
| 545 dictionary_, IdToKey(ast_id), handle(target, isolate()))); | 547 dictionary_, IdToKey(ast_id), handle(target, isolate()))); |
| 546 } | 548 } |
| 547 | 549 |
| 548 | 550 |
| 549 } // namespace internal | 551 } // namespace internal |
| 550 } // namespace v8 | 552 } // namespace v8 |
| OLD | NEW |