OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 } | 565 } |
566 | 566 |
567 | 567 |
568 RUNTIME_FUNCTION(Runtime_MaxSmi) { | 568 RUNTIME_FUNCTION(Runtime_MaxSmi) { |
569 SealHandleScope shs(isolate); | 569 SealHandleScope shs(isolate); |
570 DCHECK(args.length() == 0); | 570 DCHECK(args.length() == 0); |
571 return Smi::FromInt(Smi::kMaxValue); | 571 return Smi::FromInt(Smi::kMaxValue); |
572 } | 572 } |
573 | 573 |
574 | 574 |
575 RUNTIME_FUNCTION(RuntimeReference_NumberToString) { | 575 RUNTIME_FUNCTION(Runtime_NumberToString) { |
576 SealHandleScope shs(isolate); | 576 SealHandleScope shs(isolate); |
577 return __RT_impl_Runtime_NumberToStringRT(args, isolate); | 577 return __RT_impl_Runtime_NumberToStringRT(args, isolate); |
578 } | 578 } |
579 | 579 |
580 | 580 |
581 RUNTIME_FUNCTION(RuntimeReference_IsSmi) { | 581 RUNTIME_FUNCTION(Runtime_IsSmi) { |
582 SealHandleScope shs(isolate); | 582 SealHandleScope shs(isolate); |
583 DCHECK(args.length() == 1); | 583 DCHECK(args.length() == 1); |
584 CONVERT_ARG_CHECKED(Object, obj, 0); | 584 CONVERT_ARG_CHECKED(Object, obj, 0); |
585 return isolate->heap()->ToBoolean(obj->IsSmi()); | 585 return isolate->heap()->ToBoolean(obj->IsSmi()); |
586 } | 586 } |
587 | 587 |
588 | 588 |
589 RUNTIME_FUNCTION(RuntimeReference_IsNonNegativeSmi) { | 589 RUNTIME_FUNCTION(Runtime_IsNonNegativeSmi) { |
590 SealHandleScope shs(isolate); | 590 SealHandleScope shs(isolate); |
591 DCHECK(args.length() == 1); | 591 DCHECK(args.length() == 1); |
592 CONVERT_ARG_CHECKED(Object, obj, 0); | 592 CONVERT_ARG_CHECKED(Object, obj, 0); |
593 return isolate->heap()->ToBoolean(obj->IsSmi() && | 593 return isolate->heap()->ToBoolean(obj->IsSmi() && |
594 Smi::cast(obj)->value() >= 0); | 594 Smi::cast(obj)->value() >= 0); |
595 } | 595 } |
596 } | 596 } |
597 } // namespace v8::internal | 597 } // namespace v8::internal |
OLD | NEW |