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/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/full-codegen.h" | 9 #include "src/full-codegen.h" |
10 #include "src/runtime/runtime-utils.h" | 10 #include "src/runtime/runtime-utils.h" |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 base::OS::PrintError("abort: %s\n", message->ToCString().get()); | 365 base::OS::PrintError("abort: %s\n", message->ToCString().get()); |
366 isolate->PrintStack(stderr); | 366 isolate->PrintStack(stderr); |
367 base::OS::Abort(); | 367 base::OS::Abort(); |
368 UNREACHABLE(); | 368 UNREACHABLE(); |
369 return NULL; | 369 return NULL; |
370 } | 370 } |
371 | 371 |
372 | 372 |
373 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { | 373 RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { |
374 DCHECK(args.length() == 0); | 374 DCHECK(args.length() == 0); |
375 return Smi::FromInt(Natives::GetBuiltinsCount()); | 375 return Smi::FromInt(Natives::GetBuiltinsCount() + |
| 376 ExtraNatives::GetBuiltinsCount()); |
376 } | 377 } |
377 | 378 |
378 | 379 |
379 // Returns V8 version as a string. | 380 // Returns V8 version as a string. |
380 RUNTIME_FUNCTION(Runtime_GetV8Version) { | 381 RUNTIME_FUNCTION(Runtime_GetV8Version) { |
381 HandleScope scope(isolate); | 382 HandleScope scope(isolate); |
382 DCHECK(args.length() == 0); | 383 DCHECK(args.length() == 0); |
383 | 384 |
384 const char* version_string = v8::V8::GetVersion(); | 385 const char* version_string = v8::V8::GetVersion(); |
385 | 386 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ | 496 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ |
496 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ | 497 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |
497 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ | 498 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ |
498 } | 499 } |
499 | 500 |
500 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) | 501 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) |
501 | 502 |
502 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION | 503 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION |
503 } | 504 } |
504 } // namespace v8::internal | 505 } // namespace v8::internal |
OLD | NEW |