| 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 // The input is already a primitive. | 1024 // The input is already a primitive. |
| 1025 Push(input); | 1025 Push(input); |
| 1026 } | 1026 } |
| 1027 if_inputisprimitive.Else(); | 1027 if_inputisprimitive.Else(); |
| 1028 { | 1028 { |
| 1029 // Convert the input to a primitive. | 1029 // Convert the input to a primitive. |
| 1030 Push(BuildToPrimitive(input, input_map)); | 1030 Push(BuildToPrimitive(input, input_map)); |
| 1031 } | 1031 } |
| 1032 if_inputisprimitive.End(); | 1032 if_inputisprimitive.End(); |
| 1033 // Convert the primitive to a string value. | 1033 // Convert the primitive to a string value. |
| 1034 HValue* values[] = {context(), Pop()}; | 1034 HValue* values[] = {Pop()}; |
| 1035 Callable toString = CodeFactory::ToString(isolate()); | 1035 Callable toString = CodeFactory::ToString(isolate()); |
| 1036 Push(AddUncasted<HCallWithDescriptor>(Add<HConstant>(toString.code()), 0, | 1036 Push(AddUncasted<HCallWithDescriptor>(Add<HConstant>(toString.code()), 0, |
| 1037 toString.descriptor(), | 1037 toString.descriptor(), |
| 1038 ArrayVector(values))); | 1038 ArrayVector(values))); |
| 1039 } | 1039 } |
| 1040 if_inputisstring.End(); | 1040 if_inputisstring.End(); |
| 1041 } | 1041 } |
| 1042 if_inputissmi.End(); | 1042 if_inputissmi.End(); |
| 1043 return Pop(); | 1043 return Pop(); |
| 1044 } | 1044 } |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 return Pop(); | 1447 return Pop(); |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 | 1450 |
| 1451 Handle<Code> KeyedLoadGenericStub::GenerateCode() { | 1451 Handle<Code> KeyedLoadGenericStub::GenerateCode() { |
| 1452 return DoGenerateCode(this); | 1452 return DoGenerateCode(this); |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 } // namespace internal | 1455 } // namespace internal |
| 1456 } // namespace v8 | 1456 } // namespace v8 |
| OLD | NEW |