| Index: src/runtime/runtime-maths.cc
|
| diff --git a/src/runtime/runtime-maths.cc b/src/runtime/runtime-maths.cc
|
| index a4435e09e98c63d229b7aac4a3b0943af2efed03..2941b580f57b5c3388eac94d7232c863de744e91 100644
|
| --- a/src/runtime/runtime-maths.cc
|
| +++ b/src/runtime/runtime-maths.cc
|
| @@ -112,6 +112,17 @@ RUNTIME_FUNCTION(Runtime_MathExpRT) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_MathClz32) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + isolate->counters()->math_clz32()->Increment();
|
| +
|
| + CONVERT_NUMBER_CHECKED(uint32_t, x, Uint32, args[0]);
|
| + return *isolate->factory()->NewNumberFromUint(
|
| + base::bits::CountLeadingZeros32(x));
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(Runtime_MathFloor) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 1);
|
|
|